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

fix install location of systemd drop-in configs #5615

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

nmeyerhans
Copy link
Contributor

Fixes #5613

Proposed Commit Message

<fix>(systemd) Correct location of installed drop-in files

As noted in the systemd documentation, /etc is reserved for "System
units created by the administrator" while the lib directory should be
used by "System units installed by the distribution package manager".

Fixes GH-5613

Additional Context

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1078180
https://manpages.debian.org/bookworm/systemd/systemd.unit.5.en.html

Test Steps

Validate that cloud-init installations currently include /etc/systemd/system/[email protected]/disable-sshd-keygen-if-cloud-init-active.conf. After this change, the file is installed as /usr/lib/systemd/system/[email protected]/disable-sshd-keygen-if-cloud-init-active.conf

Merge type

  • Squash merge using "Proposed Commit Message"
  • Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

Copy link
Member

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@TheRealFalcon TheRealFalcon merged commit ac94539 into canonical:main Aug 13, 2024
23 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.

setup.py installs systemd drop-ins to /etc, should be /usr/lib
2 participants