]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: allow root to login with empty password to test images
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 25 Apr 2016 18:03:27 +0000 (14:03 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 9 May 2016 00:27:33 +0000 (20:27 -0400)
test/test-functions

index 9e9f2953cb69205729e8686a773410377bc2f2d3..be954d0fe84efcfa3cc9b2861294fbb97ada5637 100644 (file)
@@ -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() {