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:
227b1ee
)
Issue MAKEDEV commands in a loop (RHBZ#507374).
author
Richard Jones
<rjones@trick.home.annexia.org>
Mon, 22 Jun 2009 15:43:42 +0000
(16:43 +0100)
committer
Richard Jones
<rjones@trick.home.annexia.org>
Mon, 22 Jun 2009 15:43:42 +0000
(16:43 +0100)
appliance/init
patch
|
blob
|
history
diff --git
a/appliance/init
b/appliance/init
index
41ce916
..
96d785c
100755
(executable)
--- a/
appliance/init
+++ b/
appliance/init
@@
-3,8
+3,12
@@
echo Starting /init script ...
PATH=/sbin:/usr/sbin:$PATH
mount -t tmpfs none /dev
mkdir /dev/pts /dev/shm /dev/mapper
PATH=/sbin:/usr/sbin:$PATH
mount -t tmpfs none /dev
mkdir /dev/pts /dev/shm /dev/mapper
-MAKEDEV mem null port zero core full ram tty console fd \
- hda hdb hdc hdd sda sdb sdc sdd loop sd
+# Must do each MAKEDEV individually, because if one device fails,
+# MAKEDEV will quit without creating the rest (RHBZ#507374).
+for dev in mem null port zero core full ram tty console fd \
+ hda hdb hdc hdd sda sdb sdc sdd loop sd; do
+ MAKEDEV $dev ||:
+done
mknod /dev/ptmx c 5 2; chmod 0666 /dev/ptmx
mknod /dev/random c 1 8; chmod 0666 /dev/random
mknod /dev/urandom c 1 9; chmod 0444 /dev/urandom
mknod /dev/ptmx c 5 2; chmod 0666 /dev/ptmx
mknod /dev/random c 1 8; chmod 0666 /dev/random
mknod /dev/urandom c 1 9; chmod 0444 /dev/urandom