From 3b0c1375d454a58c230629f4fa7e9acec025721a Mon Sep 17 00:00:00 2001 From: Vasiliy Stelmachenok Date: Wed, 26 Mar 2025 17:21:27 +0300 Subject: [PATCH] Add limine as a bootloader selection Signed-off-by: Vasiliy Stelmachenok --- .../airootfs/usr/local/bin/calamares-online.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/archiso/airootfs/usr/local/bin/calamares-online.sh b/archiso/airootfs/usr/local/bin/calamares-online.sh index 071dfdc..82477f9 100755 --- a/archiso/airootfs/usr/local/bin/calamares-online.sh +++ b/archiso/airootfs/usr/local/bin/calamares-online.sh @@ -28,17 +28,21 @@ Main() { local BOOTLOADER="" if [ -d "${_efi_check_dir}" ]; then SYSTEM="UEFI SYSTEM" - - # Restrict bootloader selection to only UEFI systems _exitcode=$(yad --width 300 --title "Bootloader" \ --image=gnome-shutdown \ --button="Grub:2" \ --button="Systemd-boot(Default):3" \ --button="Refind:4" \ --button="AI SDK / Refind:5" \ + --button="Limine:6" \ --text "Choose Bootloader/Edition:" ; echo $?) else SYSTEM="BIOS/MBR SYSTEM" + _exitcode=$(yad --width 300 --title "Bootloader" \ + --image=gnome-shutdown \ + --button="Grub:2" \ + --button="Limine:6" \ + --text "Choose Bootloader/Edition:" ; echo $?) fi local ISO_VERSION="$(cat /etc/version-tag)" @@ -70,6 +74,13 @@ Main() { yes | sudo pacman -R cachyos-calamares-qt6-systemd yes | sudo pacman -R cachyos-calamares-qt6-refind yes | sudo pacman -Sy cachyos-calamares-qt6-ai + elif [[ "${_exitcode}" -eq 6 ]]; then + BOOTLOADER="Limine" + echo "USING Limine" + yes | sudo pacman -R cachyos-calamares-qt6-grub + yes | sudo pacman -R cachyos-calamares-qt6-systemd + yes | sudo pacman -R cachyos-calamares-qt6-refind + yes | sudo pacman -Sy cachyos-calamares-qt6-limine else exit fi