bootc: support grub2 serial console customization#2403
Draft
jbtrystram wants to merge 1 commit into
Draft
Conversation
5d6dcba to
9d7b50c
Compare
Wire the blueprint bootloader customization into the bootc disk image pipeline. When blueprint specifies grub2 serial/terminal settings, emit an org.osbuild.grub2.d stage that writes a drop-in config to `boot/grub2/console.cfg` after bootc install-to-filesystem. This relies on `bootupd`'s `console.cfg` grub config: https://github.com/coreos/bootupd/blob/main/src%2Fgrub2%2Fgrub-static-pre.cfg#L41 This adds a Go wrapper for the new osbuild stage and reads `GetBootloader()` in the bootc image type. Assisted-by: Opencode.ai <Opus 4.6> Requires: osbuild/blueprint#53 Requires: osbuild/osbuild#2473
9d7b50c to
b1afdd7
Compare
Member
|
@jbtrystram I'll mark this one as draft until we land the required |
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.
Wire the blueprint bootloader customization into the bootc disk image pipeline.
When blueprint specifies grub2 serial/terminal settings, emit an org.osbuild.grub2.d stage that writes a drop-in config to
boot/grub2/console.cfgafter bootc install-to-filesystem.This relies on
bootupd'sconsole.cfggrub config: https://github.com/coreos/bootupd/blob/main/src%2Fgrub2%2Fgrub-static-pre.cfg#L41This adds a Go wrapper for the new osbuild stage and reads
GetBootloader()in the bootc image type.Assisted-by: Opencode.ai <Opus 4.6>
Requires: osbuild/blueprint#53
Requires: osbuild/osbuild#2473