From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: [OSSTest PATCH 2/2] ts-debian-fixup: avoid removing the host root password Date: Thu, 12 Dec 2013 13:37:01 +0100 Message-ID: <20131212123701.31099.89171.stgit@Solace> References: <20131212123239.31099.15104.stgit@Solace> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20131212123239.31099.15104.stgit@Solace> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org for the following reasons: - it's the guest's root password that was being targeted, the fact that we're killing the host's one is a bug; - it's not needed, as a few lines below we copy the rsa keys necessary to login without any password being prompet. This has been tested by doing a full $ ./sg-run-job test-amd64-amd64-xl and, after that, restarting the guest and (successfully) ssh-ing there. Signed-off-by: Dario Faggioli --- ts-debian-fixup | 1 - 1 file changed, 1 deletion(-) diff --git a/ts-debian-fixup b/ts-debian-fixup index f001418..66c65a5 100755 --- a/ts-debian-fixup +++ b/ts-debian-fixup @@ -55,7 +55,6 @@ sub access () { target_cmd_root($ho, <{Vg}/$gho->{Lv} /mnt - perl -i~ -pe "s/^root:[^:]+:/root::/" /etc/shadow mkdir -p /mnt/root/.ssh /mnt/etc/ssh cp -a /root/.ssh/* /mnt/root/.ssh/. cp -a /etc/ssh/ssh_host_*key* /mnt/etc/ssh/.