Skip to content

Commit

Permalink
disable pam_systemd* modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Apr 1, 2022
1 parent 7ba7f08 commit 5108f78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kvmd.install
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ post_upgrade() {
[ ! -f /boot/config.txt ] || sed -i -e 's/^dtoverlay=pi3-disable-bt$/dtoverlay=disable-bt/g' /boot/config.txt
[ ! -f /boot/config.txt ] || sed -i -e 's/^dtoverlay=dwc2$/dtoverlay=dwc2,dr_mode=peripheral/g' /boot/config.txt
[ ! -f /etc/conf.d/rngd ] || (echo 'RNGD_OPTS="-o /dev/random -r /dev/hwrng -x jitter -x pkcs11 -x rtlsdr"' > /etc/conf.d/rngd)
[ ! -f /etc/pam.d/system-login ] || sed -e '/\<pam_systemd\.so\>/ s/^#*/#/' /etc/pam.d/system-login
[ ! -f /etc/pam.d/system-auth ] || sed -e '/\<pam_systemd_home\.so\>/ s/^#*/#/' /etc/pam.d/system-auth

# Some update deletes /etc/motd, WTF
[ ! -f /etc/motd -a -f /etc/motd.pacsave ] && mv /etc/motd.pacsave /etc/motd || true
Expand Down

0 comments on commit 5108f78

Please sign in to comment.