From 47b86a2c553ee5783fa2511f0fc6b34e93962247 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 29 Sep 2015 14:04:20 +0100 Subject: [PATCH] ts-debian-fixup: Set password Previously this script would try to set an empty password. However, default installs have a configuration which hates empty passwords. Instead, set the password `xenroot'. The value is the output of: perl -e '$x = crypt "xenroot", "aa"; print "$x\n"' Signed-off-by: Ian Jackson Acked-by: Ian Campbell --- ts-debian-fixup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts-debian-fixup b/ts-debian-fixup index 75c93e3..cc779a3 100755 --- a/ts-debian-fixup +++ b/ts-debian-fixup @@ -58,7 +58,8 @@ sub access () { target_cmd_root($ho, <{Vg}/$gho->{Lv} $mountpoint - perl -i~ -pe "s/^root:[^:]+:/root::/" /etc/shadow + perl -i~ -pe "s/^root:[^:]+:/root:aabyZIU4rIOok:/" /etc/shadow + # crypt of `xenroot' mkdir -p $mountpoint/root/.ssh $mountpoint/etc/ssh cp -a /root/.ssh/* $mountpoint/root/.ssh/. cp -a /etc/ssh/ssh_host_*key* $mountpoint/etc/ssh/. -- 2.39.5