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

hooks: move pam.d files into /usr/lib/pam.d #272

Draft
wants to merge 2 commits into
base: core24
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions hooks/900-cleanup-etc-var.chroot
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ rm -rvf /etc/selinux
rm -rvf /etc/binfmt.d
rm /etc/gai.conf
rm /etc/debian_version

# pam stuff, move pam.d files into /usr/lib/pam.d instead of
# /etc/pam.d to allow snaps to mount their own pam.d files as well
rm /etc/pam.conf

# we cannot move the common-* files, as they are expected only in /etc/pam.d
find /etc/pam.d/ -type f ! -name "common-*" -exec mv {} /usr/lib/pam.d \;

# cloud-init adds stuff here
rm -rvf /etc/profile.d/Z99-cloud*

Expand Down
Loading