From 92adb143025198dc1d5801e154dc1f248814bb72 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Thu, 28 Jul 2022 22:34:44 +0400 Subject: [PATCH] =?UTF-8?q?=E2=9B=91=20=20add=20bootloader=20selection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archiso/airootfs/usr/local/bin/calamares-online.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/archiso/airootfs/usr/local/bin/calamares-online.sh b/archiso/airootfs/usr/local/bin/calamares-online.sh index 3718386..563ff11 100755 --- a/archiso/airootfs/usr/local/bin/calamares-online.sh +++ b/archiso/airootfs/usr/local/bin/calamares-online.sh @@ -37,6 +37,20 @@ Main() { esac mode=online # keep this line for now! + local _exitcode=$(yad --width 300 --title "Bootloader" \ +--image=gnome-shutdown \ +--button="Grub:2" \ +--button="Systemd-boot:3" \ +--text "Choose Bootloader:" ; echo $?) + + if [[ "${_exitcode}" -eq 2 ]]; then + echo "GRUB!" + elif [[ ${_exitcode} -eq 3 ]]; then + echo "SYSTEMD-BOOT!" + else + exit + fi + cat < $log ########## $log by $progname ########## Started (UTC): $(date -u "+%x %X")