Repository navigation
Support setting what type of mount configuration to set in disk.yaml - #1834
Conversation
|
I know I'm on PTO but please take a look at this branch as well where I implemented the where each part of the 'how to mount' is a separate option: main...supakeen:images:train/refactor-mount-config (though maybe we want to group around some 'strategy' enum). With the above branch I build fully auto-gpt images, I was planning to submit it after I get back, they probably won't conflict too much but maybe some bits can be shared/adjusted to eachother. |
|
@supakeen These branches are sort of complementary, as your focuses a lot more on the distro yaml format, which mine leaves as is. However, I prefer how my branch uses an enum rather than two bools for fstab/units/none, because it doesn't really make any sense to allow both fstab and units. I see you have split out the root_partition_kernel arg handling to its own thing though, and that also makes a lot of sense. So, I think keeping my work as is and then rebasing your work on that is going to be good. |
Sounds good to me, they'll probably merge together fine but I wanted to show my homework as well (I considered a |
achilleas-k
left a comment
There was a problem hiding this comment.
Thank you! I like how this turned out.
|
@supakeen Thanks for noticing this PR. I must admit I forgot you were working on the other side of this. Looking forward to getting this into the image config as well. |
mvo5
left a comment
There was a problem hiding this comment.
Thank you! This looks super nice. +0.9 already. One question about a (maybe?) accidental line but otherwise consider it approved.
96ccc66 to
c5f8333
Compare
c5f8333 to
2cbd480
Compare
|
CI unit test for image-builder-cli fails with:
However, I get the same with osbuild-images HEAD, without this MR. |
|
Git bisect says this is the commit that broke it: 1c70e97 is the first bad commit pkg/distro/generic/fedora_test.go | 2 +- |
|
And indeed, the unit test fails in the MR for that: https://github.com/osbuild/images/pull/1823/checks |
2cbd480 to
1739457
Compare
yeah, the reverse dependency integration test has been updated to not fail in these cases now. |
This extends the current internal boolean mountUnits options to an enum that also allows to disable both fstab and mount units. Additionally, it also adds the option "mount_configuration" to the bootc disk.yaml embedded config file, allowing bootc images to configure this. For now, distro.ImageConfig still has MountUnits, because changing that would break the yaml format. However, this could be changed in the future. MOUNT_CONFIGURATION_FSTAB has value 0, to make the default match the default for a mountUnit boolean (i.e. false). Note: The previous MountUnits option also affected the generated kernel config options in some cases. We do the same now even if the option is set to none.
1739457 to
3ab47a7
Compare
This extends the current internal boolean mountUnits options to an enum that also allows to disable both fstab and mount units.
Additionally, it also adds the option "mount_configuration" to the bootc disk.yaml embedded config file, allowing bootc images to configure this.
For now, distro.ImageConfig still has MountUnits, because changing that would break the yaml format. However, this could be changed in the future.
MOUNT_CONFIGURATION_FSTAB has value 0, to make the default match the default for a mountUnit boolean (i.e. false).
Note: The previous MountUnits option also affected the generated kernel config options in some cases. We do the same now even if the option is set to none.