From: Adrian Schröter Date: Wed, 8 Apr 2009 20:35:30 +0000 (+0000) Subject: mount proc before binfmtmisc mount. X-Git-Tag: obs_2.0~234 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bec9fbce9cd67a48d3fa79149878ef452a7bbe47;p=tools%2Fobs-build.git mount proc before binfmtmisc mount. --- diff --git a/initscript_qemu_vm b/initscript_qemu_vm index a6be297..857c767 100755 --- a/initscript_qemu_vm +++ b/initscript_qemu_vm @@ -1,8 +1,11 @@ #!/bin/bash-static # from /usr/sbin/qemu-binfmt-conf.sh +if [ ! -f /proc/sys ]; then + mount-static -n proc -t proc /proc +fi if [ ! -f /proc/sys/fs/binfmt_misc/register ]; then - mount-static binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc + mount-static -n binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc fi # register arm echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm:' > /proc/sys/fs/binfmt_misc/register