Skip to content

Commit 7f7b5db

Browse files
committed
Fix wine registration
1 parent 3d3ec4d commit 7f7b5db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/docker.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ use rustc;
1414
pub fn register(target: &Target, verbose: bool) -> Result<()> {
1515
let cmd = if target.is_windows() {
1616
// https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html
17-
"echo ':DOSWin:M::MZ::/usr/bin/run-detectors' > /proc/sys/fs/binfmt_misc/register"
17+
"mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc && \
18+
echo ':DOSWin:M::MZ::/usr/bin/run-detectors' > /proc/sys/fs/binfmt_misc/register"
1819
} else {
1920
"apt-get update && apt-get install --no-install-recommends -y \
2021
binfmt-support qemu-user-static"

0 commit comments

Comments
 (0)