2020-04-24 13:19:37 +03:00
|
|
|
#!/bin/bash
|
|
|
|
set -eu -o pipefail
|
|
|
|
|
|
|
|
cd "${IMAGE_PATH}"
|
|
|
|
### Generate md5sum.txt. Generate it two times, to get the own checksum right.
|
|
|
|
(find . -type f -print0 | xargs -0 md5sum >"${IMAGE_PATH}/md5sum.txt")
|
|
|
|
|
|
|
|
|
|
|
|
echo >&2 "===]> Info: Create Isolinux... "
|
|
|
|
xorriso -as mkisofs \
|
|
|
|
-iso-level 3 \
|
|
|
|
-full-iso9660-filenames \
|
2023-05-03 14:23:56 +03:00
|
|
|
-volid "KUBUNTU_MBP" \
|
2020-04-24 13:19:37 +03:00
|
|
|
-b boot/grub/bios.img \
|
|
|
|
-no-emul-boot \
|
|
|
|
-boot-load-size 4 \
|
|
|
|
-boot-info-table \
|
|
|
|
-c boot/grub/boot.cat \
|
|
|
|
--grub2-boot-info \
|
2020-05-03 16:04:34 +03:00
|
|
|
--grub2-mbr "/usr/lib/grub/i386-pc/boot_hybrid.img" \
|
2020-04-24 13:19:37 +03:00
|
|
|
-eltorito-alt-boot \
|
|
|
|
-e "EFI/efiboot.img" \
|
|
|
|
-no-emul-boot \
|
|
|
|
-isohybrid-mbr "${ROOT_PATH}/files/isohdpfx.bin" \
|
|
|
|
-isohybrid-gpt-basdat -isohybrid-apm-hfsplus \
|
2024-04-25 21:28:25 +03:00
|
|
|
-output "${ROOT_PATH}/kubuntu-24.04-${KERNEL_VERSION}.iso" \
|
2020-04-24 13:19:37 +03:00
|
|
|
-graft-points \
|
|
|
|
"." \
|
|
|
|
/boot/grub/bios.img=isolinux/bios.img \
|
|
|
|
/EFI/efiboot.img=isolinux/efiboot.img
|