-
Notifications
You must be signed in to change notification settings - Fork 183
Do clean up in cosa for bootc v1.6.0 #4285
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
base: main
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
Looks like the issue still exist in the latest bootc version. |
assert len(refs) == 1 | ||
subprocess.check_call(['ostree', 'refs', '--repo', tmpd, refs[0], '--create', ref]) | ||
subprocess.check_call(['ostree', 'container', 'image', 'pull', | ||
'--ostree-digestfile', f'{parent_tmpd}/digestfile', |
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.
Can't this just be tmpd
instead of parent_tmpd
?
|
||
# Read the digestfile and get the ref | ||
with open(f'{parent_tmpd}/digestfile', 'r') as f: | ||
ostree_commit = f.read().splitlines()[0] |
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.
Hmm, we shouldn't need splitlines()[0]
?
@@ -367,6 +367,8 @@ def import_oci_archive(parent_tmpd, ociarchive, ref): | |||
Imports layered/non-encapsulated OCI archive into the tmp/repo. Returns | |||
the OSTree commit that was imported. | |||
''' | |||
|
|||
ostree_commit = '' |
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.
I don't think we need this line.
I think the issue there is that we needed new enough rpm-ostree (v2025.10, which pulls in the newer ostree-ext) in the starting disk image, i.e. the qcow2 that |
As bootc v1.6.0 is expected to fix the reproducibility of ostree commit, these changes mainly contains changes to use ostree commit from meta.json
Closes: #4275