summaryrefslogtreecommitdiff
path: root/mkiso.sh
blob: a1ea87db98863d81e27c408ac36aab752190d0d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

mkdir -p iso_root/

dd if=/dev/zero of=iso_root/fat.img bs=1k count=1440
mformat -i iso_root/fat.img -f 1440 ::
mmd -i iso_root/fat.img ::/EFI
mmd -i iso_root/fat.img ::/EFI/BOOT
mcopy -i iso_root/fat.img BOOTX64.EFI ::/EFI/BOOT

xorriso -as mkisofs -no-emul-boot -boot-load-size 4 \
    -boot-info-table --efi-boot fat.img -efi-boot-part \
    --efi-boot-image --protective-msdos-label iso_root -o Hyra.iso > /dev/null

rm -rf iso_root