generic/bootc: allow disk.yaml to provide root filesystem type#2405
generic/bootc: allow disk.yaml to provide root filesystem type#2405joelcapitao wants to merge 1 commit into
Conversation
When a container includes a `disk.yaml` with a partition table, use it to determine the root filesystem type if `bootc install print-configuration` does not provide one. Partially fixes: osbuild#2380 Assisted-by: OpenCode (Claude Opus 4)
supakeen
left a comment
There was a problem hiding this comment.
Thanks, this is how we discussed it 🙂, bootc install print-configuration 'wins' otherwise we can still use disk.yaml's information.
TBH I find it a bit weird UX-wise. Why would the bootc config override the image-builder specific config when image-builder is used as the tool to create the disk image ? I thought it would be the other way around : So you could override the roots through a bootc drop-in, but only the rootfs? Also, did someone even test that it work ? :) |
I have the idea (but I could be convinced otherwise) that if a
See above, though I agree it's not ideal especially when deriving containers that already contain a Let's tag some others who might have ideas about this: @achilleas-k / @ondrejbudai / @cgwalters / @alexlarsson. How do you all feel about the ordering of configuration here?
I'm planning to document the behavior, we can definitely add a log output or message in |
I was planning to handle this in the
IMHO it makes more sense to handle all the exceptions in the |
Here in scenarios 4 to 6, why not simply rely on |
|
From the automotive side we don't really have any specific requirements here other than we need to be able to make it respect the disk.yaml as the only source of truth somehow. We don't expect the user to run image-builder manually, or have custom bootc configs. |
I think it could be just a warning, but not fatal if disk.yaml has conflicts with the root filesystem type of the bootc config. What would also help here is to have more unified tool to apply configs from inside the container, so one could see these things at container build time and not disk image build time. Perhaps we could extend |
That's interesting. We could add this linter plugin in bootc codebase (not externally), and enable it with a envvar e.g: |
Going off topic here but there has been thought to have |
When a container includes a
disk.yamlwith a partition table, use it to determine the root filesystem type ifbootc install print-configurationdoes not provide one.Partially fixes: #2380
Assisted-by: OpenCode (Claude Opus 4)