[Bug 1626848] Re: flash-kernel postrm.d script fails on kernel removal

Loïc Minier loic.minier at ubuntu.com
Fri Sep 23 15:28:42 UTC 2016


** Changed in: flash-kernel (Ubuntu)
       Status: New => Invalid

-- 
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:
  Invalid

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