From b5b49f3e1343b6df646eaa9d4afb22b73c6d24e5 Mon Sep 17 00:00:00 2001 From: Zhang Qiang Date: Thu, 27 Feb 2014 10:57:44 +0800 Subject: [PATCH] clean up old registered binfmt handlers before use it Change-Id: Ic3892e13ab28a1c83e885e0e087ab6675a4a3b71 --- init_buildsystem | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init_buildsystem b/init_buildsystem index e72613a..58ec929 100755 --- a/init_buildsystem +++ b/init_buildsystem @@ -688,6 +688,10 @@ else # if check_use_emulator; then [ -n "$USE_SYSTEM_QEMU" ] && copy_qemu + + echo "clean up registered binfmt handlers" + sudo sh -c "echo -1 >/proc/sys/fs/binfmt_misc/status" + echo "registering binfmt handlers for VM" if [ -x "$BUILD_DIR/initvm.$BUILD_HOST_ARCH" -a -e "$BUILD_DIR/qemu-reg" ]; then -- 2.7.4