From 84033b879ef2c6bad427a062d25ca45343e4db8b Mon Sep 17 00:00:00 2001 From: Breadway Date: Sat, 15 Aug 2026 22:35:58 +0800 Subject: [PATCH] iso: switch UEFI bootmode from systemd-boot to GRUB systemd-boot can only read the ESP it launched from, so mkarchiso copies vmlinuz + initramfs into efiboot.img on top of the ISO9660 copy (~244 MiB duplicate). uefi.grub reads ISO9660 directly; iso/grub configs were already present and BOS-branded. --- iso/profiledef.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/iso/profiledef.sh b/iso/profiledef.sh index aa92318..c438138 100644 --- a/iso/profiledef.sh +++ b/iso/profiledef.sh @@ -8,7 +8,12 @@ iso_application="Bread Operating System" iso_version="$(date +%Y.%m.%d)" install_dir="arch" buildmodes=('iso') -bootmodes=('bios.syslinux' 'uefi.systemd-boot') +# systemd-boot can only read files from the ESP it was launched from, so +# mkarchiso's _make_bootmode_uefi.systemd-boot copies vmlinuz + initramfs +# INTO the FAT efiboot.img on top of the copy already on ISO9660 (~244 MiB +# duplicate). uefi.grub's ESP is only EFI + shell*.efi — GRUB reads ISO9660 +# directly. iso/grub/{grub,loopback}.cfg are already BOS-branded. +bootmodes=('bios.syslinux' 'uefi.grub') arch="x86_64" pacman_conf="pacman.conf" airootfs_image_type="squashfs"