Skip to content

bootc: support grub2 serial console customization#2403

Draft
jbtrystram wants to merge 1 commit into
osbuild:mainfrom
jbtrystram:blueprint_add_bootloader_grub_options
Draft

bootc: support grub2 serial console customization#2403
jbtrystram wants to merge 1 commit into
osbuild:mainfrom
jbtrystram:blueprint_add_bootloader_grub_options

Conversation

@jbtrystram

Copy link
Copy Markdown
Contributor

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

@jbtrystram jbtrystram requested a review from a team as a code owner June 8, 2026 07:46
@jbtrystram jbtrystram force-pushed the blueprint_add_bootloader_grub_options branch from 5d6dcba to 9d7b50c Compare June 8, 2026 09:34
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
@jbtrystram jbtrystram force-pushed the blueprint_add_bootloader_grub_options branch from 9d7b50c to b1afdd7 Compare June 8, 2026 09:58
@supakeen supakeen self-requested a review June 8, 2026 13:20
@supakeen supakeen marked this pull request as draft June 8, 2026 13:20
@supakeen

supakeen commented Jun 8, 2026

Copy link
Copy Markdown
Member

@jbtrystram I'll mark this one as draft until we land the required osbuild stage in main so we can run CI in a useful manner 🙂

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.

2 participants