mirror of
https://github.com/systemd/systemd.git
synced 2025-02-20 01:58:18 +03:00
Merge pull request #17706 from ddstreet/test-move-pam-systemd-user
test/test-functions: copy /usr/lib/pam.d into $initdir
This commit is contained in:
commit
ff84fadbf1
@ -1058,7 +1058,9 @@ install_pam() {
|
|||||||
else
|
else
|
||||||
find /lib*/security -xtype f
|
find /lib*/security -xtype f
|
||||||
fi
|
fi
|
||||||
find /etc/pam.d /etc/security -xtype f
|
for d in /etc/pam.d /etc/security /usr/lib/pam.d; do
|
||||||
|
[ -d "$d" ] && find $d -xtype f
|
||||||
|
done
|
||||||
) | while read file; do
|
) | while read file; do
|
||||||
inst $file
|
inst $file
|
||||||
done
|
done
|
||||||
@ -1067,9 +1069,6 @@ install_pam() {
|
|||||||
# see http://www.linux-pam.org/Linux-PAM-html/sag-pam_unix.html
|
# see http://www.linux-pam.org/Linux-PAM-html/sag-pam_unix.html
|
||||||
dracut_install -o unix_chkpwd
|
dracut_install -o unix_chkpwd
|
||||||
|
|
||||||
[[ "$LOOKS_LIKE_DEBIAN" ]] &&
|
|
||||||
cp /etc/pam.d/systemd-user $initdir/etc/pam.d/
|
|
||||||
|
|
||||||
# set empty root password for easy debugging
|
# set empty root password for easy debugging
|
||||||
sed -i 's/^root:x:/root::/' $initdir/etc/passwd
|
sed -i 's/^root:x:/root::/' $initdir/etc/passwd
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user