commit 40acd9db4a2d9b641ba03891fd56787c8f040a5d parent f58e29c2d978fd14df0c76a9fa2e2a0a6ac35735 Author: torter <koubbamohamedrayan@gmail.com> Date: Tue, 24 Nov 2026 19:02:20 +0000 chamesle-boot: limine bios-install gets the BIOS boot partition on GPT, and its error shows Diffstat:
| M | tools/chamesle-boot | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/chamesle-boot b/tools/chamesle-boot @@ -144,6 +144,8 @@ cp "$t/usr/share/limine/limine-bios.sys" "$t/boot/" if [ -z "$bios" ]; then echo "BIOS: $disk is GPT with no BIOS boot partition, so it boots by UEFI only" else - inroot limine bios-install "$disk" >/dev/null || die "limine bios-install $disk failed" + # on GPT, stage 2 goes in the BIOS boot partition: limine wants its number + n=$(lsblk -lno NAME,PARTTYPE "$disk" | awk 'tolower($2) == "21686148-6449-6e6f-744e-656564454649" { print $1 }' | head -n 1 | sed 's/.*[^0-9]//') + inroot limine bios-install "$disk" $n || die "limine bios-install $disk $n failed" echo "BIOS: limine is on $disk" fi