Repository navigation
Use ISOBootloader and rename to generic-iso - #2779
Merged
Merged
Conversation
brlane-rht
requested review from
a team,
achilleas-k and
thozza
as code owners
October 19, 2026 22:20
This uses the ISOBootloader list which encapsulates all the bootloader
setup like menus, timeouts, etc. And makes it consistent with other
bootable iso images. This also makes it possible for the grub menu
override in iso.yaml to use templates instead of hard-coding the kernel
and initrd parameters.
eg. Writing to iso.yaml from a Containerfile:
RUN cat <<EOF > /usr/lib/image-builder/bootc/iso.yaml
label: bootc-generic
kernel_args:
- console=ttyS0
grub2:
timeout: 5
entries:
- name: Boot Linux
linux: \${kernelpath} \${root} inst.graphical
initrd: \${initrdpath}
- name: Boot Linux With debug
linux: \${kernelpath} \${root} inst.graphical rd.debug=1
initrd: \${initrdpath}
EOF
iso_tree_test: fix from/to associations
This allows it to be used as a TreePipeline interface.
This allows it to use the commong iso bootloader support which makes it easier to support other architectures, and the kernel args, menu settings and customizations are all in one place.
Use iso_config from the bootc yaml definition, and setup the customization structs needed by ISOBootloader. Add iso_config to bootc-generic-iso yaml, and add the list of files to exclude from the compressed rootfs. This also updates checksums, the only change is that troubleshooting and debug grub2 options are now true because the grub menu has not been overridden by an iso.yaml customization.
bootc-generic-iso's name is redundant and makes the iso name longer than it needs to be. This changes it to generic-iso, but keeps bootc-generic-iso as an alias for backwards compatibility. Also updates tests and documentation.
And update the anaconda example to use the grub2 ostree stage templates so that the kernel/root/initrd lines aren't hard-coded.
brlane-rht
force-pushed
the
main-generic-iso
branch
from
October 19, 2026 22:32
1979272 to
11aacaa
Compare
supakeen
self-requested a review
October 20, 2026 04:39
croissanne
reviewed
Oct 20, 2026
croissanne
left a comment
Member
There was a problem hiding this comment.
Overall this makes sense to me, even though I'm not super well-versed in it. One comment regarding a comment that got removed.
|
|
||
| if img.Grub2MenuDefault != nil { | ||
| bootTreePipeline.DefaultMenu = *img.Grub2MenuDefault | ||
| kernelOpts := []string{ |
Member
There was a problem hiding this comment.
Is the comment above no longer valid?
// org.osbuild.grub2.iso.legacy fails to run with empty kernel options, so let's use something harmless
// if we didn't have any specific kernelopts set
Contributor
Author
There was a problem hiding this comment.
Yeah, I'm not sure why the comment was there -- we always need to set the kernel options in order for the iso boot so it'll never be empty.
achilleas-k
approved these changes
Oct 20, 2026
| This container file builds a simple bootable iso with nothing extra. | ||
|
|
||
| ```Dockerfile | ||
| FROM quay.io/fedora/fedora-bootc:rawhide |
Member
There was a problem hiding this comment.
Very minor question: Any reason this is rawhide and not latest?
Contributor
Author
There was a problem hiding this comment.
That's the way @lucasgarfield wrote the anaconda example so I kept things consistent.
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.
This updates the bootc-generic-iso image to use the ISOBootloader code from 13dea1a so that all the iso types are consistent. This also allows using templates in the grub2 custom menus, and renames bootc-generic-iso to generic-iso. iso_config settings now come from the bootc yaml configuration which will make it easier to update to erofs in a future PR.