[Bug 1626848] [NEW] flash-kernel postrm.d script fails on kernel removal
Robert C Jennings
1626848 at bugs.launchpad.net
Fri Sep 23 06:09:23 UTC 2016
Public bug reported:
Context: livecd-rootfs build for ARM64 ubuntu images using the linux-
generic kernel
What changed: linux-image-generic-extra-* came into being and now linux-
image-generic-* depends on it. When removed the zz-flash-kernel hook
for the kernel runs twice (postinst.d and postrm.d)
What happened:
- Creating a container image (LXD, ...) livecd-rootfs starts with a server image with a kernel and removes the kernel.
- The kernel postinst.d hook for flash-kernel (zz-flash-kernel) runs twice now (first for postinst and then for postrm). On the second call there is no kernel installed and flash-kernel does not handle being called with no kernel present; the kernel removal operation fails at this point.
Looking for a solution where zz-flash-kernel/flash-kernel is tolerant of
this behavior such that kernel removal is possible.
** Affects: flash-kernel (Ubuntu)
Importance: Critical
Status: New
** Attachment added: "arm64_livecd-rootfs_flash-kernel.failure"
https://bugs.launchpad.net/bugs/1626848/+attachment/4746704/+files/arm64_livecd-rootfs_flash-kernel.failure
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to flash-kernel in Ubuntu.
https://bugs.launchpad.net/bugs/1626848
Title:
flash-kernel postrm.d script fails on kernel removal
Status in flash-kernel package in Ubuntu:
New
Bug description:
Context: livecd-rootfs build for ARM64 ubuntu images using the linux-
generic kernel
What changed: linux-image-generic-extra-* came into being and now
linux-image-generic-* depends on it. When removed the zz-flash-kernel
hook for the kernel runs twice (postinst.d and postrm.d)
What happened:
- Creating a container image (LXD, ...) livecd-rootfs starts with a server image with a kernel and removes the kernel.
- The kernel postinst.d hook for flash-kernel (zz-flash-kernel) runs twice now (first for postinst and then for postrm). On the second call there is no kernel installed and flash-kernel does not handle being called with no kernel present; the kernel removal operation fails at this point.
Looking for a solution where zz-flash-kernel/flash-kernel is tolerant
of this behavior such that kernel removal is possible.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/1626848/+subscriptions
More information about the foundations-bugs
mailing list