]> xenbits.xensource.com Git - osstest.git/commitdiff
ts-debian-fixup: Set password
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 29 Sep 2015 13:04:20 +0000 (14:04 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 2 Oct 2015 10:32:42 +0000 (11:32 +0100)
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 <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
ts-debian-fixup

index 75c93e3c9459eec711ded0050542ec873effbf1f..cc779a3f2d9025233e7311bdea0f6ea2815a9bb3 100755 (executable)
@@ -58,7 +58,8 @@ sub access () {
     target_cmd_root($ho, <<END);
         set -ex
         mount /dev/$gho->{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/.