[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH OSSTEST] Debian: Log which kernel/initrd we failed to copy.



Helpful to trackdown which config var I've got wrong.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 Osstest/Debian.pm | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index f6874af..c0af0b3 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -741,14 +741,16 @@ END
     foreach my $kp (keys %{ $ho->{Flags} }) {
        $kp =~ s/need-kernel-deb-// or next;
 
+       my $kern = "$d_i/$kp.deb";
        my $kurl = create_webfile($ho, "kernel", sub {
-           copy("$d_i/$kp.deb", $_[0])
-               or die "Copy kernel failed: $!";
+           copy($kern, $_[0])
+               or die "Copy kernel $kern failed: $!";
         });
 
+       my $ird = "$d_i/initramfs-tools.deb";
        my $iurl = create_webfile($ho, "initramfs-tools", sub {
-           copy("$d_i/initramfs-tools.deb", $_[0])
-               or die "Copy initramfs-tools failed: $!";
+           copy($ird, $_[0])
+               or die "Copy initramfs-tools %ird failed: $!";
         });
 
        preseed_hook_command($ho, 'late_command', $sfx, <<END);
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.