Cool, I was not aware of those variables.
--
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
A better (IMO) code to check this is:
case "$DPKG_MAINTSCRIPT_PACKAGE::$DPKG_MAINTSCRIPT_NAME" in
linux-image-extra*::postrm)
exit 0;;
esac
I uploaded update-notifier and unattended-upgrades with that for bug
1458204.
--
You received this bug notification because you are a member
Oh, I seem to have forgotten to get the possible configurable path to
dpkg in the version 2 of the code. That can be added to it, though I
don't know how much that is required in Ubuntu.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to
This is another version for the code. It does not use awk.
** Attachment added: "code to add in probably all post-installation scripts
except initramfs-tools and dkms to exit them before their job in case removing
linux-image-extra (ver. 2)"
Still, it might make more sense to run the scripts in
/etc/kernel/postrm.d and program the exceptions for linux-image-extra
there. For example, check in /etc/kernel/postrm.d/zz-update-grub if we
are removing a linux-image-extra package, and only update grub, if not,
right? And in
I think the problems can be worked around by the attached code by adding
it to post-installation scripts such as apt-auto-removal, unattended-
upgrades, update-notifier, zz-update-grub, but not in initramfs-tools or
dkms.
** Attachment added: "code to add in probably all post-installation scripts
@Andy, can you give more information about the trigger implementation
you referred to?
--
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
@Andy reboot request notification is triggered by some kernels post-
installation scripts only, so it is related. And as for the second
issue, I have presented different strategy or two in the description of
that bug report.
--
You received this bug notification because you are a member of
@Jarno the first of those seems unrelated to the underlying issue here.
The second one of these is real. That would not be resolved by not
running the postinst if postrm then did update-initramfs -u. That would
be resolved by the long intended and never implemented switch to a
fuller trigger
Andy, in comment #10 I have mentioned a couple of other side effects of
running post-installation scripts when removing a linux-image-extra
package.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
Thanks Andy, that makes sense. I'm not aware of any other hooks having
problems. I have also neither checked apt-auto-remove nor noticed the
issue recently. So I'll take you word for it that the hook itself has
been fixed in which case we can close this one as Not-A-Bug or whatever
seems
The kernel linux-image-extras-* package intentionally calls postinst
scripts even when it is rmeoved. This is required because after its
removal you have still have the kernel installed though in a very
slimmed down form; one which is valid for booting in a VM for instance.
The postrm for the
Why doesn't linux-image-extra's postrm simply run update-initramfs. That
seems the more sensible thing to do as it is the same as with any other
package that wants to put things into the initrd.
--
You received this bug notification because you are a member of Kernel
Packages, which is
linux-image--generic is present when removing linux-image-
extra--generic. initramfs-tools needs to re-create initrd.img,
at least if linux-image--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
As for the apt-auto-removal problem, it is fixed, right? Bug #1440608
Yet to be fixed at least:
Bug #1458204
Bug #1678187
--
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:
This is still an issue in xenial. Triggered when running "sudo apt-get
autoremove" to remove old linux-images. What is the correct package to
report this bug against please?
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
Still an issue in xenial! I've added package 'linux' since that's the
source package that has the problem and I'm not sure how else to show
that this is a problem in trusty AND xenial (and probably everything in-
between).
** Also affects: linux (Ubuntu)
Importance: Undecided
Status:
Is there anything else I can do to get this fixed?
We have now gone through a couple of kernel versions all of which have
this bug. One of them had a problem which meant I couldn't use it and
this bug meant I couldn't just reboot into the previous kernel (because
it had been auto-removed).
I
I have attached an (untested) patch to fix this issue hoping that that
will prod it along a bit. The patch is against the sources of
`linux_3.13.0-67.110` as downloaded by an `apt-get source
linux=3.13.0-67.110` on 14.04.3.
Cheers,
Seb
** Patch added: "Change the image-extra post* maintainer
** Tags added: patch
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-lts-trusty in Ubuntu.
https://bugs.launchpad.net/bugs/1501884
Title:
linux-image-extra-*-generic postrm script runs install actions
Status in linux-lts-trusty
Changed the package name to linux-lts-trusty as that what I've seen used
in other bug reports against the kernel for trusty even though the
source package for e.g. linux-image-extra-3.13.0-65-generic is listed in
apt-cache as linux. Feel free to change back if this is inappropriate.
** Package
Forgot to mention: I noticed it in 14.04.3 trusty kernel version
3.13.0-63.
--
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
Brad, what's to diagnose? I've done all the diagnosis for you already.
Anyway, here's the relevant snippet from the dpkg log with the
problematic line highlighted:
(Reading database ... 149768 files and directories currently installed.)
Removing linux-headers-3.13.0-63-generic (3.13.0-63.103) ...
Sorry Brad. I didn't notice the 'Automatic Script' bit.
** Changed in: linux (Ubuntu)
Status: Incomplete => Confirmed
--
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:
24 matches
Mail list logo