summaryrefslogtreecommitdiff
path: root/test/test-functions
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-25 14:03:27 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-05-08 20:27:33 -0400
commite14b866bc15f30ea88fc084050e1963bb6312f72 (patch)
tree402ccba65a19a276104787507418760eec05d352 /test/test-functions
parented1190498f977f5dd2287b1e4db356147196ced5 (diff)
tests: allow root to login with empty password to test images
Diffstat (limited to 'test/test-functions')
-rw-r--r--test/test-functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-functions b/test/test-functions
index 9e9f2953cb..be954d0fe8 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -416,6 +416,9 @@ install_pam() {
[[ "$LOOKS_LIKE_DEBIAN" ]] &&
cp /etc/pam.d/systemd-user $initdir/etc/pam.d/
+
+ # set empty root password for easy debugging
+ sed -i 's/^root:x:/root::/' $initdir/etc/passwd
}
install_keymaps() {