set fall-back boot to currently-running system

This commit is contained in:
bit 2025-08-22 18:04:04 +02:00
parent 0b4523ae4a
commit ada368e6d2

View File

@ -157,7 +157,9 @@ do_update() {
if [[ -f /boot/grub/grub.cfg ]] if [[ -f /boot/grub/grub.cfg ]]
then then
echo "bootloader 'GRUB' detected, configuring test-boot into new system" echo "bootloader 'GRUB' detected, configuring test-boot into new system"
"''${latest_system}/bin/switch-to-configuration" "boot" #"''${latest_system}/bin/switch-to-configuration" "boot"
#"/run/booted-system/bin/switch-to-configuration" "boot"
"/run/current-system/bin/switch-to-configuration" "boot"
${grub-reboot} "NixOS - All configurations>0" ${grub-reboot} "NixOS - All configurations>0"
#${grub-reboot} "NixOS - Profile '$PROFILE_NAME'>0" #${grub-reboot} "NixOS - Profile '$PROFILE_NAME'>0"
elif ${bootctl} list 2>&1 | ${grep} -v "No boot loader entries found." > /dev/null elif ${bootctl} list 2>&1 | ${grep} -v "No boot loader entries found." > /dev/null