diff options
| author | Ian Moffett <ian@osmora.org> | 2025-12-21 16:48:51 -0500 |
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2025-12-21 16:48:51 -0500 |
| commit | 10e9348d798d9a683c966480faca00cabc531dd5 (patch) | |
| tree | 063ae71517af235d500d52f21ccc620004184104 /host/iso-limine | |
initial commit
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'host/iso-limine')
| -rwxr-xr-x | host/iso-limine | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/host/iso-limine b/host/iso-limine new file mode 100755 index 0000000..3d3caa1 --- /dev/null +++ b/host/iso-limine @@ -0,0 +1,24 @@ +#!/bin/bash + +set -e + +ISO=live-mos.iso + +mkdir -p iso_root/boot/ + +# Copy the kernel to the ISO root +cp mos/sys/sys.mos iso_root/boot + +# Copy boot files +cp admin/conf/limine.conf mos/boot/limine/limine-bios.sys \ + mos/boot/limine/limine-bios-cd.bin \ + mos/boot/limine/limine-uefi-cd.bin \ + iso_root/ + +# Generate the ISO +xorriso -as mkisofs -b limine-bios-cd.bin -no-emul-boot -boot-load-size 4 \ + -boot-info-table --efi-boot limine-uefi-cd.bin -efi-boot-part \ + --efi-boot-image --protective-msdos-label iso_root/ -o $ISO 1>/dev/null + +mos/boot/limine/limine bios-install $ISO 1>/dev/null +rm -rf iso_root |
