]> git.sur5r.net Git - bacula/rescue/commitdiff
Get it booting again
authorKern Sibbald <kern@sibbald.com>
Wed, 27 Dec 2006 14:10:05 +0000 (14:10 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 27 Dec 2006 14:10:05 +0000 (14:10 +0000)
rescue/linux/cdrom/Makefile.in
rescue/linux/cdrom/cdtree/boot/isolinux/isolinux.bin
rescue/linux/cdrom/makeinitrd
rescue/linux/cdrom/roottree/etc/inittab
rescue/linux/cdrom/roottree/init [new file with mode: 0755]

index e242b24ef8811e097b904a4b567155cca04ccb09..83a0627dad8bb82b576ea4001de4fbc77d23ba14 100644 (file)
@@ -8,7 +8,7 @@
 MKCDREC=@BUILD_DIR@/mkcdrec
 CWD=@BUILD_DIR@/linux/cdrom
 
 MKCDREC=@BUILD_DIR@/mkcdrec
 CWD=@BUILD_DIR@/linux/cdrom
 
-first_rule: mkcdrec
+first_rule: all
 dummy:
 
 #-------------------------------------------------------------------------
 dummy:
 
 #-------------------------------------------------------------------------
@@ -55,6 +55,7 @@ copy-bacula:
        cp -a bacula/ cdimage/
 
 pre-mkcdrec:               
        cp -a bacula/ cdimage/
 
 pre-mkcdrec:               
+       @echo
        ./mkcdrec_rd    
        @echo "Patching mkcdrec Config.sh for Bacula"
        @mkdir -p tmp
        ./mkcdrec_rd    
        @echo "Patching mkcdrec Config.sh for Bacula"
        @mkdir -p tmp
@@ -73,7 +74,11 @@ pre-mkcdrec:
        @cp -f @BACULA_SCRIPTS@/bacula-fd.conf bacula/bin
 
 main-mkcdrec: dummy
        @cp -f @BACULA_SCRIPTS@/bacula-fd.conf bacula/bin
 
 main-mkcdrec: dummy
-       @echo "Doing make in mkcdrec directory"
+       @echo " "
+       @echo "Doing make in mkcdrec directory. This may take some time and"
+       @echo "  produce a good amount of output"
+       @echo " "
+       @echo             
        (cd ${MKCDREC}; make rescue)
 
 post-mkcdrec:
        (cd ${MKCDREC}; make rescue)
 
 post-mkcdrec:
index 408fd05b0fe3944e229de7b29a2de5cdea54f164..7b20754dbfcebea73f6f6597488267548a0e6ad8 100644 (file)
Binary files a/rescue/linux/cdrom/cdtree/boot/isolinux/isolinux.bin and b/rescue/linux/cdrom/cdtree/boot/isolinux/isolinux.bin differ
index d59ad05d02562bb8bd1e6b69dfde997ee899f590..ae939a9d69e8357cd88f68d71fe7b0e72e4793c2 100755 (executable)
@@ -58,7 +58,7 @@ if [ $cprtn != 0 ] ; then
 fi
 
 # This is a newer way of creating a ramfs, which we don't use
 fi
 
 # This is a newer way of creating a ramfs, which we don't use
-(cd roottree; find . | cpio --quiet -c -o) >root
+(cd roottree; find . | cpio --quiet -c -o) >root
 
 echo "Building initial RAM disk done"
 
 
 echo "Building initial RAM disk done"
 
index 84cfbab8a09bb4908f383f6d0e36abb5ffb8bc7f..e245f854a318fb7cd4645f27329a9f2501a49e78 100644 (file)
@@ -38,13 +38,13 @@ ca::ctrlaltdel:/sbin/halt -d
 
 
 # Run gettys in standard runlevels
 
 
 # Run gettys in standard runlevels
-#1:2345:respawn:/sbin/mingetty tty1
-1:2345:respawn:/bin/sh
-#2:2345:respawn:/sbin/mingetty tty2
-#2:2345:respawn:/bin/sh
+#1:2345:respawn:/bin/sh
+2:2345:respawn:/bin/sh
 #3:2345:respawn:/bin/sh
 #4:2345:respawn:/bin/sh
 #5:2345:respawn:/bin/sh
 #3:2345:respawn:/bin/sh
 #4:2345:respawn:/bin/sh
 #5:2345:respawn:/bin/sh
+#1:2345:respawn:/sbin/mingetty tty1
+#2:2345:respawn:/sbin/mingetty tty2
 #3:2345:respawn:/sbin/mingetty tty3
 #4:2345:respawn:/sbin/mingetty tty4
 #5:2345:respawn:/sbin/mingetty tty5
 #3:2345:respawn:/sbin/mingetty tty3
 #4:2345:respawn:/sbin/mingetty tty4
 #5:2345:respawn:/sbin/mingetty tty5
diff --git a/rescue/linux/cdrom/roottree/init b/rescue/linux/cdrom/roottree/init
new file mode 100755 (executable)
index 0000000..43cbb3a
--- /dev/null
@@ -0,0 +1,48 @@
+#!/bin/sh
+#
+# First script called by Linux when booting
+#
+
+echo "======== init called ========"
+sbin/sleep 3
+# sbin/chroot .
+#trap "" 1 2 3 15
+# exec >/dev/console </dev/console 2>&1
+#PATH=sbin 
+sbin/mount -t proc none /proc
+sbin/mount -t sysfs none /sys
+echo Creating /dev
+sbin/mount -o mode=0755 -t tmpfs none /dev
+sbin/mknod /dev/console c 5 1
+sbin/mknod /dev/null c 1 3
+sbin/mknod /dev/zero c 1 5
+sbin/mkdir /dev/pts
+sbin/mkdir /dev/shm
+echo Starting udev
+sbin/udevstart
+echo -n "/sbin/hotplug" > /proc/sys/kernel/hotplug
+echo "Loading scsi_mod.ko module"
+sbin/insmod /lib/scsi_mod.ko 
+echo "Loading sd_mod.ko module"
+sbin/insmod /lib/sd_mod.ko 
+echo "Loading aic7xxx.ko module"
+sbin/insmod /lib/aic7xxx.ko 
+echo "Loading libata.ko module"
+sbin/insmod /lib/libata.ko 
+echo "Loading ata_piix.ko module"
+sbin/insmod /lib/ata_piix.ko 
+sbin/udevstart
+
+# CMDLINE=`cat /proc/cmdline`
+# DEBUG=""
+# case "$CMDLINE" in *debug*) DEBUG="yes"; ;; esac
+# export DEBUG
+
+# Magic incantation for root to remain in ram 
+# echo 0x0100 > /proc/sys/kernel/real-root-dev
+
+sbin/mount -o remount,rw /dev/root /
+
+# sh
+
+exec /sbin/init