Ubuntu Pastebin

Paste from xnox at Sun, 31 Jan 2016 12:05:06 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
diff --git a/debian/control-scripts/postinst b/debian/control-scripts/postinst
index c4fc23f..721496d 100644
--- a/debian/control-scripts/postinst
+++ b/debian/control-scripts/postinst
@@ -856,7 +856,7 @@ if ($initrd) {
     image_magic("initrd.img", $image_dest);
   }
   else {
-    if (! -e "initrd.img") {
+    if (! -e "$image_dest/initrd.img") {
       handle_missing_link("initrd.img", $image_dest, "initrd.img-$version",
                           $realimageloc);
     }
Download as text