Skip to content

Commit 76fb1ea

Browse files
committed
fix: only mount binfmt_misc if not already mounted
1 parent b199e96 commit 76fb1ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/customize

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function execute_chroot_script() {
5959
elif [ "$EDITBASE_ARCH" == "aarch64" ] || [ "$EDITBASE_ARCH" == "arm64" ]; then
6060
update-binfmts --enable qemu-aarch64
6161
fi
62-
mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc || true
62+
(mount | grep -q -v "type binfmt_misc") || mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
6363
fi
6464

6565
# black magic of qemu-arm-static

0 commit comments

Comments
 (0)