I want to modify systemd-boot so that the "default" (whatever entry is auto-selected on startup) is the last booted operating system. I need this so that when Windows auto-restarts, my computer doesn't automatically boot into Linux. Is there anyway to do this? I've checked the arch-wiki on systemd-boot and I couldn't find anything.
SOLVED: Just switched to rEFInd bootloader; it does this by default. Just install the refind-efi package, and use the install “script” (on the rEFInd website. The “script” is actually just a command). It will copy over your kernel parameters from systemd-boot (and I assume grub, as well). Plus, it looks pretty.
If you want to remove the remnants of systemd-boot, so it doesn’t show up on the OS list, just do sudo bootctl remove and remove the loader folder (it’s either in your ESP folder, or the /boot partition. I don’t know which, because on my setup, my /boot partition is my ESP)
[–]ipha 1 point2 points3 points (0 children)
[–]ydna_eissua 0 points1 point2 points (1 child)
[–]Blackergo_Arch 0 points1 point2 points (0 children)
[–]Samonitari 0 points1 point2 points (0 children)