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

linux-2.6 piuparts error



0m54.3s ERROR: FAIL: Package purging left files on system:
  /etc/kernel-img.conf	 not owned


so either it is a failure to generate such a file in postinst (as we
shouldn't really need it!?), or one would want to remove it on purge,
which opens another can of worms as this file is unowned in real boxes
and usualy created by d-i.

the best argument is that due to the convulated questions postinst
wanted to ask you in the past we had never reached that point of
generating this conffile in postinst.


diff --git a/linux-2.6/debian/templates/temp.image.plain/postinst b/linux-2.6/debian/templates/temp.image.plain/postinst
index ae8c797..43dba4d 100755
--- a/linux-2.6/debian/templates/temp.image.plain/postinst
+++ b/linux-2.6/debian/templates/temp.image.plain/postinst
@@ -478,24 +478,10 @@ sub handle_missing_link {
       die("Failed to copy " . $realimageloc . "$image_name to "
           . $image_dest . "$kimage .\n");
     }
-  } 
-  else {
+  } else {
     if (! $have_conffile) {
       # current default
       $do_symlink = "Yes";
-
-      if (open(CONF, ">$CONF_LOC")) {
-        print CONF "# Kernel Image management overrides\n";
-        print CONF "# See kernel-img.conf(5) for details\n";
-        if ($loader =~ /palo/i) {
-          print CONF "link_in_boot = Yes\n";
-          print CONF "do_symlinks = Yes\n";
-          print CONF "relative_links = Yes\n";
-          print CONF "do_bootloader = No\n";
-        }
-        close CONF;
-      }
-      $have_conffile = "Yes";
     }
   }
 


Reply to: