Skip to content
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

compose: Ensure tempdir is dropped after commit #5339

Merged
merged 1 commit into from
Mar 18, 2025

Conversation

cgwalters
Copy link
Member

The tempdir holds the ostree repo.

I'm looking at an issue reported in a downstream build that failed like this:

+ rpm-ostree experimental compose build-chunked-oci --bootc --format-version=1 --rootfs /target-rootfs --output oci-archive:/buildcontext/out.ociarchive
Generating commit...
error: Generating commit from rootfs: syncfs: Not a directory
subprocess exited with status 1
subprocess exited with status 1

Which frankly has me just confused. The syncfs here is almost certainly coming from libostree's sync of the target repo.

And "Not a directory" is especially weird, implying that repo/tmp got swapped with something else?

The tempdir holds the ostree repo.

I'm looking at an issue reported in a downstream build that failed
like this:

```
+ rpm-ostree experimental compose build-chunked-oci --bootc --format-version=1 --rootfs /target-rootfs --output oci-archive:/buildcontext/out.ociarchive
Generating commit...
error: Generating commit from rootfs: syncfs: Not a directory
subprocess exited with status 1
subprocess exited with status 1
```

Which frankly has me just confused. The `syncfs` here is
almost certainly coming from libostree's sync of the target repo.

And "Not a directory" is especially weird, implying
that `repo/tmp` got swapped with something else?

Signed-off-by: Colin Walters <[email protected]>
@cgwalters cgwalters enabled auto-merge March 18, 2025 00:04
@cgwalters cgwalters merged commit ca7deb5 into coreos:main Mar 18, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants