From: Ian Campbell Date: Thu, 22 Jan 2015 11:04:56 +0000 (+0000) Subject: Osstest/Debian: Install dtbs into target filesystem in /boot/dtbs X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=781c5757b9ee0a797c76008f34a42651e80bca52;p=osstest.git Osstest/Debian: Install dtbs into target filesystem in /boot/dtbs This is done whenever dtbs.tar.gz exists. mg-debian-installer-update produces the necessary inputs on the relevant platform (armhf). Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 7081a29..0a69aca 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -20,6 +20,8 @@ package Osstest::Debian; use strict; use warnings; +use POSIX; + use IO::File; use File::Copy; @@ -514,6 +516,9 @@ sub preseed_create ($$;@) { my $disk= $xopts{DiskDevice} || '/dev/sda'; my $suite= $xopts{Suite} || $c{DebianSuite}; + my $d_i= $ho->{Tftp}{Path}.'/'.$ho->{Tftp}{DiBase}.'/'.$r{arch}.'/'. + $c{TftpDiVersion}.'-'.$ho->{Suite}; + my $hostsq= $dbh_tests->prepare(<{Flags} }) { $kp =~ s/need-kernel-deb-// or next; - my $d_i= $ho->{Tftp}{Path}.'/'.$ho->{Tftp}{DiBase}.'/'.$r{arch}.'/'. - $c{TftpDiVersion}.'-'.$ho->{Suite}; - my $kurl = create_webfile($ho, "kernel", sub { copy("$d_i/$kp.deb", $_[0]) or die "Copy kernel failed: $!";