]> git.sur5r.net Git - bacula/rescue/blobdiff - rescue/linux/cdrom/Makefile.in
Enhance makefiles
[bacula/rescue] / rescue / linux / cdrom / Makefile.in
index 977fce97266d7bad9677ac64339faea030c10d27..8d8729431d71cbc17db783ca0465090e10ef4ae4 100644 (file)
@@ -15,6 +15,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,19 +45,22 @@ static-bacula: dummy
 bacula: dummy
        @(cd bacula; make)
 
-all:   kernel binaries bacula initrd iso
+copy-bacula:
+       cp -a bacula/ cdimage/
+
+all:   cdimage bacula copy-bacula remaster
 
 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