feat: Systemd one-shot service for Kernel fallback mechanism#153
Open
mikeraymond7 wants to merge 1 commit intocanonical:ubuntu/mainfrom
Open
feat: Systemd one-shot service for Kernel fallback mechanism#153mikeraymond7 wants to merge 1 commit intocanonical:ubuntu/mainfrom
mikeraymond7 wants to merge 1 commit intocanonical:ubuntu/mainfrom
Conversation
Adds a systemd one-shot service to amend the bootloader on a successfully booted, new kernel entry using the -no-boot-next option. Should a newly installed kernel panic while booting, no changes will occur in the boot loader and the service ensures BootNext is not set again on the bad kernel (unless another evocation of nullbootctl does). In the event that a new kernel successfully boots, nullboot will amend the boot loader with the new kernel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a systemd one-shot service to amend the bootloader on a successfully booted, new kernel entry using the -no-boot-next option.
Should a newly installed kernel panic while booting, no changes will occur in the boot loader and the service ensures BootNext is not set again on the bad kernel (unless another evocation of nullbootctl does).
In the event that a new kernel successfully boots, nullboot will amend the boot loader with the new kernel.
This is the first systemd service I've written, so feel free to nit pick anything. I did test that this works with my changes to ubuntu-boot-test.
Also note: we cannot merge this until the changes from #144 reach the
ubuntu/mainbranch since it requires theno-boot-nextflag and the new fallback-mechanism to be enabled.