From: Ian Jackson Subject: Re: [PATCH OSSTEST v2 08/15] Debian: add preseed_create_guest helper Date: Fri, 2 May 2014 12:33:55 +0100 Message-ID: <21347.33443.909563.567037@mariner.uk.xensource.com> References: <1398681672.29700.55.camel@kazak.uk.xensource.com> <1398681696-2773-8-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1398681696-2773-8-git-send-email-ian.campbell@citrix.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 Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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.) I see ts-debian-hvm-install has a yet-different way of doing this, which I didn't spot. Ian.