Skip to content

Conversation

@vindex10
Copy link

efibootmgr has two options: -c and -C. The latter allows to add a new entry but keep the boot order intact.

I'm using kernelstub in a dual-boot scenario, and also use systemd-boot as a bootloader.

I want to keep the systemd-boot entry - the default, but I want kernelstub to update the NVRAM entry whenever the kernel upgrades, so that I can use the direct NVRAM entry as a fallback if needed.

Currently, kernelstub uses -c option only, which brings the newly added entry to front of the boot order, which requires me to reset boot order manually each time the kernel upgrades.

This pull request is a sketch of what I think of, I'm open to suggestions, comments, improvements :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant