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

overlay/coreos-diskful-generator: make symlink creation idempotent #1801

Merged

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Jun 17, 2022

A generator can be run multiple times. This symlink is a bit of an abuse
of systemd generators because it writes things outside of the expected
output directories. So we need to make sure that we're idempotent.

A generator can be run multiple times. This symlink is a bit of an abuse
of systemd generators because it writes things outside of the expected
output directories. So we need to make sure that we're idempotent.
@dustymabe
Copy link
Member

yeah I had this in my local checkout first before I decided to try to fix all the scripts. Reading the man page I didn't realize the This will delete the previous configuration created by generators part.

Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dustymabe dustymabe merged commit 4a2140b into coreos:testing-devel Jun 18, 2022
@jlebon jlebon deleted the pr/diskful-generator-idempotent branch January 4, 2023 01:40
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