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>
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/.