stephenc / java-iso-tools

A fork of JIIC hosted on github
http://github.com/stephenc/java-iso-tools/wiki
GNU Lesser General Public License v2.1
78 stars 45 forks source link

How to add custom boot catalog #35

Open vjorge opened 2 years ago

vjorge commented 2 years ago

Hi I can create a bootable iso with the following command:

mkisofs -relaxed-filenames -J -R -o cd.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -eltorito-platform efi -b efiboot.img -no-emul-boot

But how can I specifiy the the "-b isolinux.bin -c boot.cat", I can specify the eltorito config:

    ElToritoConfig elToritoConfig = null;
    if (enableElTorito) {           
        // El Torito support
        elToritoConfig = new ElToritoConfig(
            new File("C:\efiboot.img"),
            ElToritoConfig.BOOT_MEDIA_TYPE_NO_EMU,
            ElToritoConfig.PLATFORM_ID_X86, "",boot_load_size,
            ElToritoConfig.LOAD_SEGMENT_7C0);
    }

But have no idea how to specify the "-b isolinux.bin -c boot.cat".

Can you please help, the iso should be able to boot from EFI and non EFI.

Many thanks for the great project.