echo "# Set up the isolinux boot loader in $ISOTREE"
mkdir -p $ISOTREE/boot/isolinux/bios
cp kernel/usr/lib/syslinux/modules/bios/* $ISOTREE/boot/isolinux/bios
- mv $ISOTREE/boot/isolinux/bios/ldlinux.c32 $ISOTREE/boot/isolinux
cp kernel/usr/lib/ISOLINUX/isolinux.bin $ISOTREE/boot/isolinux
- cp syslinux-iso.cfg $ISOTREE/boot/isolinux/syslinux.cfg
- mcopy -i $P1 ::/splash.png ::/vmlinuz $ISOTREE/
+
+ ## ldlinux.c32 must be sibling to isolinux.bin
+ mv $ISOTREE/boot/isolinux/bios/ldlinux.c32 $ISOTREE/boot/isolinux
+
+ ## use isolinux.cfg for isolinux boot
+ cp syslinux-iso.cfg $ISOTREE/boot/isolinux/isolinux.cfg
+
+ ## put splash, vmlinux and initrd as siblings
+ mcopy -i $P1 ::/splash.png ::/vmlinuz ::/initrd.gz $ISOTREE/boot/isolinux
+
fi
[ -r $ISO ] && rm $ISO
# Mastering a disk legacy boot reusing the cdrom legacy boot
-boot_image isolinux dir=/boot/isolinux
- -boot_image any next
-
+ #-boot_image any iso_mbr_part_type=0x00
+ -boot_image isolinux partition_entry=gpt_basdat
+
# Mastering a disk UEFI boot using the separate boot partition $P1
# Bootloader = /EFI/BOOT/bootx64.efi
+ -boot_image any next
-append_partition 2 0xef ${P1}
-boot_image any
efi_path=--interval:appended_partition_2:all::/EFI/BOOT/bootx64.efi
- # cdrom UEFI boot is missing
+ # make part#2 bootable
)
xorriso "${XORRISO[@]}"
#sfdisk -f --part-attrs tiniest.iso 2 LegacyBIOSBootable
-sfdisk -A tiniest.iso 2
+#sfdisk -A tiniest.iso 2