tests: copy /etc/pam.d/systemd-user from the host on Debian, Ubuntu

Fixes:
systemd-testsuite systemd[34]: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
systemd-testsuite systemd[34]: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
systemd-testsuite systemd[34]: user@0.service: Failed at step PAM spawning /lib/systemd/systemd: Operation not permitted
...
on Debian, Ubuntu
This commit is contained in:
Evgeny Vereshchagin 2015-11-16 23:58:20 +00:00
parent 8702319e11
commit 417491f122

View file

@ -284,6 +284,9 @@ install_pam() {
) | while read file; do
inst $file
done
[[ "$LOOKS_LIKE_DEBIAN" ]] &&
cp /etc/pam.d/systemd-user $initdir/etc/pam.d/
}
install_keymaps() {