← Back to team overview

kernel-packages team mailing list archive

[Bug 1375310] Re: Removing linux-image-extra-X-generic deletes initramfs

 

@ Andy Whitcroft:
- in the commit d7235802d7735e53936c5ccfbe9e071021b394fb you write regarding linux-image-extra:
"As it also depends on linux-image we know that linux-image will have been installed before it, and will be removed after it."
The last part is not correct. We have no way of knowing, if the linux-image will be removed as well. Please see https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1440608/comments/37 for a more detailed reasoning.

Since all we need on installation and removal of linux-image-extras is a
rebuild of the corresponding version of the initrd, I would say this is
all we should do. And not abuse and run all of the kernel post-install
hooks on both occasions. At least on my systems I don't see any good
reason to run any of the other hooks.

Please see the attached patch for the postinst and postrm hooks for the
-extra package.

Regards,
Robert.

** Patch added: "Updated postinst and postrm hooks for -extra package to only recreate the initrd"
   https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1375310/+attachment/4551893/+files/update-only-initrd-for-extra-package.patch

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1375310

Title:
  Removing linux-image-extra-X-generic deletes initramfs

Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Trusty:
  Fix Released
Status in linux source package in Utopic:
  Fix Released

Bug description:
  Situation: linux-image-X-generic and linux-image-extra-X-generic are
  both installed

  When you remove linux-image-extra-X-generic (e.g. switching from -generic to -virtual) /boot/initrd.img-X-generic is deleted in linux-image-extra-X-generic's postrm script.
  This results into broken boot. At least when / is on LVM etc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1375310/+subscriptions


References