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

files: fix duplicate relabeling of preset file #1318

Merged
merged 1 commit into from
Feb 7, 2022
Merged

files: fix duplicate relabeling of preset file #1318

merged 1 commit into from
Feb 7, 2022

Conversation

bgilbert
Copy link
Contributor

@bgilbert bgilbert commented Feb 3, 2022

The relabelPath() in createUnits() is the correct call, since it also handles the parent directory. Move it into createSystemdPresetFile() for clarity and delete the other one.

Reported by @Nemric.

Fixes #1006.

The relabelPath() in createUnits() is the correct call, since it also
handles the parent directory.  Move it into createSystemdPresetFile() for
clarity and delete the other one.

Fixes: 0289611 ("files: relabel the systemd preset directory")
Copy link
Contributor

@Nemric Nemric left a comment

Choose a reason for hiding this comment

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

Ok for me.
the best place to relabel preset files is in the "create preset" function

@bgilbert bgilbert merged commit ec526d2 into coreos:main Feb 7, 2022
@bgilbert bgilbert deleted the relabel branch February 7, 2022 18:14
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.

3 participants