Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[systemd-boot] Add ability to persistently set-oneshot when using @saved #32519

Open
micha4w opened this issue Apr 27, 2024 · 0 comments
Open
Labels
RFE 🎁 Request for Enhancement, i.e. a feature request sd-boot/sd-stub/bootctl

Comments

@micha4w
Copy link

micha4w commented Apr 27, 2024

Component

bootctl

Is your feature request related to a problem? Please describe

Have to dualboot windows because Work, use @saved because nice, run systemctl --reboot --boot-loader-entry=auto-windows (or bootctl set-oneshot auto-windows). Am now on windows, windows decides to do a system update and restarts, I am now back in Linux, the update was not completed.

Describe the solution you'd like

You could change the behavior of the last boot not being changed when using Oneshot. But there's probably a reason for it to work this way:

/* Do not save or delete if this was a oneshot boot. */

But a command would be cool that sets the LoaderEntryLastBooted Variable. Something like bootctl set-oneshot --persist or bootctl set-savedboot.

I can make a PR if the idea is likeable.

Describe alternatives you've considered

My own small script that sets the LoaderEntryLastBooted EFI Variable.

The systemd version you checked that didn't have the feature you are asking for

255

@micha4w micha4w added the RFE 🎁 Request for Enhancement, i.e. a feature request label Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFE 🎁 Request for Enhancement, i.e. a feature request sd-boot/sd-stub/bootctl
Development

No branches or pull requests

1 participant