From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH 07/10] Debian: Honour need-kernel-deb- flag in the installed system too Date: Wed, 4 Sep 2013 17:58:20 +0100 Message-ID: <1378313903-10539-7-git-send-email-ian.campbell@citrix.com> References: <1378313870.17510.172.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1378313870.17510.172.camel@kazak.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@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --- Osstest/Debian.pm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index e58a7cc..92d97a9 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -21,6 +21,7 @@ use strict; use warnings; use IO::File; +use File::Copy; use Osstest; use Osstest::TestSupport; @@ -440,6 +441,35 @@ $overlays echo latecmd done. END + foreach my $kp (keys %{ $ho->{Flags} }) { + $kp =~ s/need-kernel-deb-// or next; + + my $d_i= $c{TftpPath}.'/'.$c{TftpDiBase}.'/'.$r{arch}.'/'.$c{TftpDiVersion}; + + my $kurl = create_webfile($ho, "kernel", sub { + copy("$d_i/$kp.deb", $_[0]); + }); + + my $iurl = create_webfile($ho, "initramfs-tools", sub { + copy("$d_i/initramfs-tools.deb", $_[0]); + }); + + preseed_hook_command($ho, 'late_command', $sfx, <