summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-06-03 17:01:55 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-06-03 17:01:55 -0500
commit9a8c90211724e0804f962358653a73d87c09d253 (patch)
treef33b436623f0884b01f9b05ce0c902c08b7b35fd
parent32208aa88f5311f0c55d72d2ffc2eea3a2612ae7 (diff)
downloadhorizon-9a8c90211724e0804f962358653a73d87c09d253.tar.gz
horizon-9a8c90211724e0804f962358653a73d87c09d253.tar.bz2
horizon-9a8c90211724e0804f962358653a73d87c09d253.tar.xz
horizon-9a8c90211724e0804f962358653a73d87c09d253.zip
image: ISO: Allow live account to log in without pw
-rw-r--r--image/backends/iso.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/image/backends/iso.cc b/image/backends/iso.cc
index 46b1d63..7dca2e1 100644
--- a/image/backends/iso.cc
+++ b/image/backends/iso.cc
@@ -291,6 +291,7 @@ public:
output_info("CD backend", "configuring login services");
run_command("sed", {"-i", "s/pam_unix.so$/pam_unix.so nullok_secure/",
target + "/etc/pam.d/base-auth"});
+ run_command("chroot", {target, "/usr/bin/passwd", "-d", "live"});
/* REQ: ISO.19 */
output_info("CD backend", "creating live /etc/issue");