Skip to content

compose: Ensure tempdir is dropped after commit#5339

Merged
cgwalters merged 1 commit intocoreos:mainfrom
cgwalters:commit-rootfs-late-tmpdir-drop
Mar 18, 2025
Merged

compose: Ensure tempdir is dropped after commit#5339
cgwalters merged 1 commit intocoreos:mainfrom
cgwalters:commit-rootfs-late-tmpdir-drop

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