]> git.sur5r.net Git - bacula/rescue/blobdiff - rescue/linux/cdrom/Makefile.in
More minor cleanup
[bacula/rescue] / rescue / linux / cdrom / Makefile.in
index 977fce97266d7bad9677ac64339faea030c10d27..f8914f2fba17d89ce297dda7c2c43f8349a27394 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Makefile for building a Bacula Rescue CDROM or remastering
+#   a CDROM or ISO image adding the Bacula files.
+#
 
 .PATH:         .
 
@@ -15,6 +19,17 @@ iso:
          -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
@@ -34,6 +49,9 @@ static-bacula: dummy
 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
@@ -41,12 +59,12 @@ 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
@@ -75,6 +93,7 @@ clean:
        @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