Skip to content

Commit

Permalink
hooks: second try at moving pam.d files - moving the common-* ones se…
Browse files Browse the repository at this point in the history
…emed to break things, experimenting now
  • Loading branch information
Meulengracht committed Nov 7, 2024
1 parent 57146e1 commit 171bd9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions hook-tests/031-faillock.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

set -eu

# the pam.d files should now be in usr/lib/pam.d
grep pam_faillock.so usr/lib/pam.d/common-auth
grep pam_faillock.so etc/pam.d/common-auth
2 changes: 1 addition & 1 deletion hooks/900-cleanup-etc-var.chroot
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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
mv /etc/pam.d/* /usr/lib/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

0 comments on commit 171bd9a

Please sign in to comment.