]> git.sur5r.net Git - bacula/rescue/blob - rescue/linux/cdrom/roottree/init
d843649c0ccb3007f59e3c5a58ec2c2a99702cb6
[bacula/rescue] / rescue / linux / cdrom / roottree / init
1 #!/bin/sh
2 #
3 # First script called by Linux when booting
4 #
5
6 echo "Start Bacula init ..."
7 sbin/sleep 3
8 # sbin/chroot .
9 #trap "" 1 2 3 15
10 # exec >/dev/console </dev/console 2>&1
11 #PATH=sbin 
12 sbin/mount -t proc none /proc
13 sbin/mount -t sysfs none /sys
14 echo Creating /dev
15 sbin/mount -o mode=0755 -t tmpfs none /dev
16 sbin/mknod /dev/console c 5 1
17 sbin/mknod /dev/null c 1 3
18 sbin/mknod /dev/zero c 1 5
19 sbin/mkdir /dev/pts
20 sbin/mkdir /dev/shm
21 if [ -x sbin/udevstart ] ; then
22    echo Starting udev
23    sbin/udev/start
24 fi
25 echo -n "/sbin/hotplug" > /proc/sys/kernel/hotplug
26
27 # CMDLINE=`cat /proc/cmdline`
28 # DEBUG=""
29 # case "$CMDLINE" in *debug*) DEBUG="yes"; ;; esac
30 # export DEBUG
31
32 # Magic incantation for root to remain in ram 
33 # echo 0x0100 > /proc/sys/kernel/real-root-dev
34
35 sbin/mount -o remount,rw /dev/root /
36
37 # sh
38
39 exec /sbin/init