zectl
zectl copied to clipboard
Default systemd-boot entry not working
This is not a zectl issue : https://github.com/systemd/systemd/issues/15068
But as it is an important feature for zectl, i'm wondering if you workedaround it ? If you reboot without beeing in front of your screen and without speedly select (and remember) the right boot env, so you get the last created boot env booted. It could be really painful if you didn't notice it...
I still don't get why i need to "activate" a bootenv after booted it ? As we select a bootenv in systemd-boot at boot, it sound like making the work twice, and being more complex without beeing useful. If i want to revert, i reboot to the previous boot env, so why activate mechanism offers more ?
Activating a boot env marks it as the default entry in the boot loader and promotes the dataset clone.
Ok thanks. Why not making auto-default+promote at startup ? and using activate
to "revert" if needed ?
I don't even know if you need activate, this seems to me a more logic workflow:
- Create a boot env "before install x"
- Something is wrong, lets reboot and select the boot env "before install x"
- At startup, it become the default boot env. Then two cases: a. I'm ok with this: nothing to do b. I'm not ok, lets reboot on another bootenv, then goto 3 :)
@zhimsel do you face the issue of systemd-boot not correctly boot defaultly set entry ?
I think I may have noticed it a week or so ago, but I don't remember. I can check specifically if needed...
@zhimsel can you try and tell me if its working please ?
Sure. I'll test this later today.
@eoli3n So I just tested what I think was the issue, and it didn't occur for me. My test procedure (while booted into the default
boot env):
-
zectl create test
-
zectl activate test
- Confirm that
loader.conf
hadtest
as the default BE - Reboot, verify that
test
was the actively selected bootloader entry (i.e. the default) - Select and boot into
default
instead - Confirm that
loader.conf
still hadtest
as the default - Reboot again and verify again that
test
was still selected in the bootloader by default.
So it seems to have been fixed. I vaguely remember seeing it as a bug that was fixed in systemd-bootloader
's bug tracker.
For reference:
- zectl version: 0.1.2
- systemd version: 246.6-1
¯\_(ツ)_/¯
Thanks for testing, I will try to understand what's going on here.
I also attempted @zhimsel 's test and cannot reproduce
bootctl version: systemd 246 (246.6-1-arch)
I think that my bootenv names are problematic:
pacmanhook-20200523T162905 NR / 2020-05-23 16:29
pacmanhook-20201121T114946 - 2020-11-21 11:49
I will test @zhimsel procedure when i have time @johnramsden what do you think of https://github.com/johnramsden/zectl/issues/29#issuecomment-729077715 ?
related to https://github.com/johnramsden/zectl/commit/4d9139e242a472fb024bc8399e83049413904df4 and #7 ? I'm running into this same problem on a fresh install for a new laptop. Tried loader.conf with org.zectl-default.conf
and org.zectl-default
, no change in behavior with systemdboot efi default entry when I zectl activate foo
. :/
I'm still running that bug, which is pretty annoying.