linux-image-<VERSION>-generic is present when removing linux-image-
extra-<VERSION>-generic. initramfs-tools needs to re-create initrd.img,
at least if linux-image-<VERSION>-generic will not be removed. If that
is the only reason, I think it would be better to do the re-creation in
a postrm script than run all postinst scripts. /etc/kernel/postrm.d
/initramfs-tools could detect it is removing a linux-image-extra package
and then do the right thing.

-- 
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/1501884

Title:
  linux-image-extra-*-generic postrm script runs install actions

Status in linux package in Ubuntu:
  Confirmed
Status in linux-lts-trusty package in Ubuntu:
  Confirmed

Bug description:
  Hi,

  The postrm maintainer script in the binary packages linux-image-
  extra-*-generic runs the scripts in /etc/kernel/postinst.d instead of
  those in /etc/kernel/postrm.d.

  This can have all sorts of undesirable consequences depending on what
  other packages add to those directories, but I noticed it because it
  caused /etc/kernel/postinst.d/apt-auto-removal to make the wrong
  decisions leaving my servers with only one installed kernel left.

  Cheers,
  Seb

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to