git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1da506
)
mount /dev via tmpfs before MAKEDEV invocation.
author
Charles Duffy
<cduffy@messageone.com>
Thu, 4 Jun 2009 07:44:00 +0000
(08:44 +0100)
committer
Richard Jones
<rjones@trick.home.annexia.org>
Thu, 4 Jun 2009 07:44:00 +0000
(08:44 +0100)
This ensures that /dev can be bind-mounted when running commands,
as initramfs cannot be bind-mounted.
appliance/make-initramfs.sh.in
patch
|
blob
|
history
diff --git
a/appliance/make-initramfs.sh.in
b/appliance/make-initramfs.sh.in
index
7e5dafb
..
5cdfed3
100755
(executable)
--- 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