From: Zhang Qiang Date: Thu, 27 Feb 2014 02:57:44 +0000 (+0800) Subject: clean up old registered binfmt handlers before use it X-Git-Tag: upstream/2015.01.15~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5b49f3e1343b6df646eaa9d4afb22b73c6d24e5;p=tools%2Fbuild.git clean up old registered binfmt handlers before use it Change-Id: Ic3892e13ab28a1c83e885e0e087ab6675a4a3b71 --- 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