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

Bug#283147: kernel-image-2.6.8-1-k7: removes /initrd.img on upgrade



This one time, at band camp, Thomas Koenig said:
> Package: kernel-image-2.6.8-1-k7
> Version: 2.6.8-9
> Severity: critical
> Justification: breaks the whole system
> 
> ... which is a Bad Thing.  I was lucky that I had other entries
> in my /etc/lilo.conf .  lilo failed on upgrade, and
> the recently installed kernel was
> unbootable.

As does kernel-image-2.6.8-1-686-smp.  I was getting ready to file this
same bug report, but happily you beat me to the punch :)

It is apparently this in postrm:

if ($ARGV[0] !~ /upgrade/) {
  if (-f $realimageloc . "initrd.img-$version") {
    unlink $realimageloc . "initrd.img-$version";
  }
  image_magic($kimage,          $image_dest);
  image_magic($kimage . ".old", $image_dest);
  image_magic("initrd.img",     $image_dest) if $initrd;
  image_magic("initrd.img.old", $image_dest) if $initrd;
}

I don't immediately see why it is failing, though.  It looks OK to me.

Perhaps it's not getting called with upgrade $old_version?

Not sure,
-- 
 -----------------------------------------------------------------
|   ,''`.					     Stephen Gran |
|  : :' :					 sgran@debian.org |
|  `. `'			Debian user, admin, and developer |
|    `-					    http://www.debian.org |
 -----------------------------------------------------------------

Attachment: pgpOAqa2OgRd7.pgp
Description: PGP signature


Reply to: