+#
+# Makefile for building a Bacula Rescue CDROM or remastering
+# a CDROM or ISO image adding the Bacula files.
+#
.PATH: .
-b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table cdtree
+remaster:
+ rm -f bootcd.iso
+ mkisofs -A "Bacula Rescue Disk" -V "Bacula Rescue Disk" \
+ -J -R -T -o bootcd.iso \
+ -b isolinux/isolinux.bin -c isolinux/boot.cat \
+ -no-emul-boot -boot-load-size 4 -boot-info-table cdimage
+
+cdimage:
+ makecdimage --type=@type@ --where=@where@
+
+
# try booting it with qemu emulator
boot:
qemu -cdrom bootcd.iso
bacula: dummy
@(cd bacula; make)
+copy-bacula:
+ cp -a bacula/ cdimage/
+
all: kernel binaries bacula initrd iso
copy-static-fd: kernel binaries static-bacula initrd iso
# This needs to be customized for your burner.
burn:
- cdrecord dev=@CDSTL@ gracetime=2 fs=4096k driveropts=burnfree -v \
+ cdrecord dev=ATA:@CDSTL@ gracetime=2 fs=4096k driveropts=burnfree -v \
-useinfo speed=48 -dao -eject -pad -data "bootcd.iso"
# Blank the CDROM assuming it is +rw
blank:
- cdrecord dev=@CDSTL@ gracetime=2 -v blank=fast -useinfo speed=48
+ cdrecord dev=ATA:@CDSTL@ gracetime=2 -v blank=fast -useinfo speed=48
scan:
cdrecord -scanbus
@rm -f roottree/etc/modules.conf roottree/etc/syslog.conf
@rm -rf roottree/etc/pam.d roottree/etc/ssh
@rm -rf roottree/etc/security roottree/etc/init.d
+ @rm -rf roottree/etc/udev roottree/etc/modprobe.conf
@rm -rf roottree/bacula-*
@rm -f cdtree/boot/isolinux/initrd.img
@rm -f cdtree/boot/isolinux/isolinux.cfg