-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stages/dracut: Add functionality to build initoverlayfs with dracut #1586
Conversation
6e1b9cc
to
aa7810c
Compare
Nice and clean but I'd love to see a test for this. Looks good, but I have no idea if it works 😆 |
We will be testing thing as part of our sample-images CI builds once this is made available: |
acbb60a
to
271d636
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
Fwiw, I would love to see a small test for this functionality, I created that validates that the option is running the expected thing. Ideally also a test in |
Running the integration test found some issues :/
I wrote a small "stage" test for this now that does an end-to-end type test (it will need tweaks but is a useful starting point) for the feature (see attached patch) 0002-test-add-stage-integration-test-for-initoverlayfs-fe.patch.txt Unfortunately this fails during the creation of the image with an error that
so the way our dracut stage drives dracut seems to not quite align with the way initoverlayfs-install expects it? |
This package, the Fedora 39 rpm, is not up to date with upstream, it's expected to fail. |
We are probably not going to backport either. I would suggest merging this as it's blocking other MRs and add the test at a later point once the corresponding changes have propagated to Fedora. This change will not break any existing osbuild scripts as initoverlayfs defaults to false. |
Does that mean it's already available in F39? We can just update the repos used in the test to newer snapshots (we made new ones on Friday). |
Integration of initoverlayfs with Fedora will probably be a Fedora 41 kind of thing... But we am currently using it with osbuild via the Automotive SIG osbuild manifests (this PR is blocking that)... |
Thanks for adding this background. I think it would be nice to add https://github.com/osbuild/osbuild/files/14329239/0002-test-add-stage-integration-test-for-initoverlayfs-fe.patch.txt to the PR and then we can maybe add a comment in there that references back to this PR that there is a end-to-end test that could can be pulled in once the rpms are available. I am okay with merging this then but would love to get a quick double check from @ondrejbudai to see if that is okay. |
271d636
to
a54e802
Compare
@mvo5 isn't the test doomed to fail given that |
Yeah it would just fail, I don't see the harm in this MR, the option is defaulted to False, so people who are gonna use this have to explicitly set it to True (the people with the correct rpms)... |
Yeah, I was just wanted to get confirmation from someone more experienced that we are okay with merging this even though we don't have a full end-to-end test (yet) :) |
I think I'm fine with that given that this is a new technology, not yet available downstream. We can of course pull the package from somewhere else, but that feels expensive... I think that not blocking this initiative is more important to me. I agree though that this test SHOULD be added when the package lands in a "mainstream" repository. |
As an alternative to just initramfs. Upstream initoverlayfs project: https://github.com/containers/initoverlayfs Signed-off-by: Eric Curtin <ecurtin@redhat.com>
Head branch was pushed to by a user without write access
a54e802
to
3df2edf
Compare
I changed a variable name to initfs_bin , think pylint didn't like the bin variable name |
Small followup for osbuild#1586 that includes a basic check that the initoverlayfs option calls the right binary.
Small followup for osbuild#1586 that includes a basic check that the initoverlayfs option calls the right binary.
Small followup for #1586 that includes a basic check that the initoverlayfs option calls the right binary.
As an alternative to just initramfs. Upstream initoverlayfs project:
https://github.com/containers/initoverlayfs