set fall-back boot to currently-running system
This commit is contained in:
parent
0b4523ae4a
commit
ada368e6d2
@ -157,7 +157,9 @@ do_update() {
|
||||
if [[ -f /boot/grub/grub.cfg ]]
|
||||
then
|
||||
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 - Profile '$PROFILE_NAME'>0"
|
||||
elif ${bootctl} list 2>&1 | ${grep} -v "No boot loader entries found." > /dev/null
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user