From: Ian Campbell Subject: Re: [PATCH OSSTEST v2 08/15] Debian: add preseed_create_guest helper Date: Fri, 2 May 2014 13:23:39 +0100 Message-ID: <1399033419.32736.82.camel@kazak.uk.xensource.com> References: <1398681672.29700.55.camel@kazak.uk.xensource.com> <1398681696-2773-8-git-send-email-ian.campbell@citrix.com> <21347.33443.909563.567037@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21347.33443.909563.567037@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, 2014-05-02 at 12:33 +0100, Ian Jackson wrote: > Ian Campbell writes ("[PATCH OSSTEST v2 08/15] Debian: add preseed_create_guest helper"): > > Creates a preseed file suitable for use in a PV guest > ... > > + my $authkeys= authorized_keys(); > > + > > + my $hostkeyfile= "$c{OverlayLocal}/etc/ssh/ssh_host_rsa_key"; > > + my $host_rsa_key= get_filecontents($hostkeyfile); > > + chomp($host_rsa_key); $host_rsa_key.="\n"; > > Osstest::Debian::preseed_create already has machinery for doing this > (in a slightly different way). Can you use it ? (It would > presumably need breaking out.) There was something which didn't fit between host and guest usage that I couldn't figure out, but it was a long time ago and I don't remember. Let me try again and I'll either succeed or find the problem again. > I see ts-debian-hvm-install has a yet-different way of doing this, > which I didn't spot. I'll see what I can do about this while I'm there. Ian.