From: Charles Duffy Date: Thu, 4 Jun 2009 07:44:00 +0000 (+0100) Subject: mount /dev via tmpfs before MAKEDEV invocation. X-Git-Tag: 1.0.39~3 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=9d6de016ccd932c18001c08c371bf83c6dbff8f0;p=libguestfs.git mount /dev via tmpfs before MAKEDEV invocation. This ensures that /dev can be bind-mounted when running commands, as initramfs cannot be bind-mounted. --- diff --git a/appliance/make-initramfs.sh.in b/appliance/make-initramfs.sh.in index 7e5dafb..5cdfed3 100755 --- a/appliance/make-initramfs.sh.in +++ b/appliance/make-initramfs.sh.in @@ -131,6 +131,7 @@ cat > init.new <<'__EOF__' #!/bin/sh echo Starting /init script ... PATH=/sbin:/usr/sbin:$PATH +mount -t tmpfs none /dev MAKEDEV mem null port zero core full ram tty console fd \ hda hdb hdc hdd sda sdb sdc sdd loop sd mount -t proc /proc /proc