diff options
author | Charles Duffy <cduffy@messageone.com> | 2009-06-04 08:44:00 +0100 |
---|---|---|
committer | Richard Jones <rjones@trick.home.annexia.org> | 2009-06-04 08:44:00 +0100 |
commit | 9d6de016ccd932c18001c08c371bf83c6dbff8f0 (patch) | |
tree | e3f46a0745584ae9260bea0127fef4553809d554 | |
parent | d1da506d35e3c14b0bbe5397d73994fe082bc831 (diff) | |
download | libguestfs-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-x | appliance/make-initramfs.sh.in | 1 |
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 |