summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2015-11-16 23:58:20 +0000
committerEvgeny Vereshchagin <evvers@ya.ru>2015-11-17 00:09:28 +0000
commit417491f122b346a31cf8dc406c4f9195a5900cec (patch)
treea0b3ab0f8aba4110db3e9c1eaebd46451a2ca570 /test
parent8702319e119008954baa872d50d0e4098e6e83db (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/test-functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-functions b/test/test-functions
index c4cf2921c8..a6eea662fc 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -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() {