If mg-debian-installer-update decided not to provide an initramfs.deb,
just skip that.

No functional change with earlier d-i fetches produced by existing
versions of mg-debian-installer-update.

Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com>
---
 Osstest/Debian.pm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index 5a083c2..dacefb3 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -1142,7 +1142,11 @@ END
         $kdeb->("kernel", $kern);
 
         my $ird = "$d_i/initramfs-tools.deb";
-        $kdeb->("initramfs-tools", $ird);
+        if (stat $ird) {
+            $kdeb->("initramfs-tools", $ird);
+        } else {
+            die "$ird $!" unless $!==ENOENT;
+        }
 
         $cmds .= <<END;
 
-- 
2.1.4


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

Reply via email to