[PATCH 14/18] packaging: do not hard-code the "ubuntu" username/password
authorZygmunt Krynicki <zygmunt.krynicki@canonical.com>
Fri, 26 Jan 2024 00:11:46 +0000 (01:11 +0100)
committerZygmunt Krynicki <me@zygoon.pl>
Fri, 19 Jul 2024 05:15:23 +0000 (07:15 +0200)
Spread needs to login to an account with a non-empty password. Set the password
of the autopkgtest user account to the same value as the account name.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0015-PATCH-14-18-packaging-do-not-hard-code-the-ubuntu-us.patch

packaging/debian-sid/tests/integrationtests

index 2267e715377620407348afa11b8c975db46e8049..eee0d334b0f45d3b9e9e151f71dee097e979cf8a 100644 (file)
@@ -24,7 +24,7 @@ printf '%s\n' "-950" > /proc/$$/oom_score_adj
 cat /proc/meminfo
 
 # ensure we can do a connect to localhost
-echo ubuntu:ubuntu|chpasswd
+echo "${AUTOPKGTEST_NORMAL_USER}":"${AUTOPKGTEST_NORMAL_USER}" | chpasswd
 sed -i 's/\(PermitRootLogin\|PasswordAuthentication\)\>.*/\1 yes/' /etc/ssh/sshd_config
 systemctl reload ssh.service