mount proc before binfmtmisc mount.
authorAdrian Schröter <adrian@suse.de>
Wed, 8 Apr 2009 20:35:30 +0000 (20:35 +0000)
committerAdrian Schröter <adrian@suse.de>
Wed, 8 Apr 2009 20:35:30 +0000 (20:35 +0000)
initscript_qemu_vm

index a6be297..857c767 100755 (executable)
@@ -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