3 echo Starting /init script ...
5 PATH=/sbin:/usr/sbin:$PATH
7 mount -t proc /proc /proc
8 mount -t sysfs /sys /sys
10 if [ -x /etc/init.d/udev ]; then
11 /etc/init.d/udev start
12 elif [ -x /sbin/start_udev ]; then
15 echo No udev, creating /dev manually
16 mount -t tmpfs none /dev
17 mkdir /dev/pts /dev/shm /dev/mapper
18 mount -t devpts -o gid=5,mode=620 /dev/pts /dev/pts
19 # Must do each MAKEDEV individually, because if one device fails,
20 # MAKEDEV will quit without creating the rest (RHBZ#507374).
21 for dev in mem null port zero core full ram tty console fd \
22 hda hdb hdc hdd sda sdb sdc sdd loop sd; do
25 mknod /dev/ptmx c 5 2; chmod 0666 /dev/ptmx
26 mknod /dev/random c 1 8; chmod 0666 /dev/random
27 mknod /dev/urandom c 1 9; chmod 0444 /dev/urandom
28 ln -sf /proc/self/fd/0 /dev/stdin
29 ln -sf /proc/self/fd/1 /dev/stdout
30 ln -sf /proc/self/fd/2 /dev/stderr
40 /sbin/ifconfig lo 127.0.0.1
41 /sbin/ifconfig eth0 10.0.2.10
42 /sbin/route add default gw 10.0.2.2
44 lvm vgscan --ignorelockingfailure
45 lvm vgchange -ay --ignorelockingfailure
47 if grep -sq guestfs_rescue=1 /proc/cmdline; then