summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Duffy <cduffy@messageone.com>2009-06-04 08:44:00 +0100
committerRichard Jones <rjones@trick.home.annexia.org>2009-06-04 08:44:00 +0100
commit9d6de016ccd932c18001c08c371bf83c6dbff8f0 (patch)
treee3f46a0745584ae9260bea0127fef4553809d554
parentd1da506d35e3c14b0bbe5397d73994fe082bc831 (diff)
downloadlibguestfs-9d6de016ccd932c18001c08c371bf83c6dbff8f0.tar.gz
libguestfs-9d6de016ccd932c18001c08c371bf83c6dbff8f0.tar.xz
libguestfs-9d6de016ccd932c18001c08c371bf83c6dbff8f0.zip
mount /dev via tmpfs before MAKEDEV invocation.
This ensures that /dev can be bind-mounted when running commands, as initramfs cannot be bind-mounted.
-rwxr-xr-xappliance/make-initramfs.sh.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/appliance/make-initramfs.sh.in b/appliance/make-initramfs.sh.in
index 7e5dafb6..5cdfed3a 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