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

genimage: improve tmppath handling #239

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

michaelolbrich
Copy link
Member

Right now cleanup is partially broken:
If the tmppath exists, then its content is removed at the end as expected. However, if the tmppath is missing then it is created but nothing is removed.

Change this to remove the directory including its content at the end when the directory was created but stick to removing just the content if the directory existed before genimage was called.

Fixes: #237

Right now cleanup is partially broken:
If the tmppath exists, then its content is removed at the end as
expected. However, if the tmppath is missing then it is created but
nothing is removed.

Change this to remove the directory including its content at the end
when the directory was created but stick to removing just the content if
the directory existed before genimage was called.

Fixes: pengutronix#237

Signed-off-by: Michael Olbrich <[email protected]>
@michaelolbrich michaelolbrich merged commit 9fc6446 into pengutronix:master Mar 6, 2024
4 checks passed
@michaelolbrich michaelolbrich deleted the tmppath branch March 22, 2024 08:19
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.

Temporary images cause tmppath to remain
1 participant