MKCDREC=@BUILD_DIR@/mkcdrec
CWD=@BUILD_DIR@/linux/cdrom
-first_rule: mkcdrec
+first_rule: all
dummy:
#-------------------------------------------------------------------------
cp -a bacula/ cdimage/
pre-mkcdrec:
+ @echo
./mkcdrec_rd
@echo "Patching mkcdrec Config.sh for Bacula"
@mkdir -p tmp
@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:
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"
# 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
+#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
--- /dev/null
+#!/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