[Bug 1729034] [NEW] don't short-circuit update-grub kernel postinst hook in containers

Steve Langasek steve.langasek at canonical.com
Tue Oct 31 16:11:01 UTC 2017


Public bug reported:

LP: #1060404 was addressed by making the update-grub kernel postinst
hook a no-op when running in containers.

We now do all of our livefs builds in containers in Launchpad; this
means livefses no longer get a grub config automatically generated with
the correct contents when installing a kernel in the target, as they did
previously.

The change for LP: #1060404 was described by Colin as a "temporary fix".

We know that update-grub itself now succeeds in containers, because we
have several points in livefs builds where we are invoking it directly
and it does what we expect.

We should check that running update-grub in a stock lxd container works
as expected, and that this isn't due to some sort of launchpad sauce.
Provided it does work, we should remove the container check from the
kernel postinst hook.

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1729034

Title:
  don't short-circuit update-grub kernel postinst hook in containers

Status in grub2 package in Ubuntu:
  New

Bug description:
  LP: #1060404 was addressed by making the update-grub kernel postinst
  hook a no-op when running in containers.

  We now do all of our livefs builds in containers in Launchpad; this
  means livefses no longer get a grub config automatically generated
  with the correct contents when installing a kernel in the target, as
  they did previously.

  The change for LP: #1060404 was described by Colin as a "temporary
  fix".

  We know that update-grub itself now succeeds in containers, because we
  have several points in livefs builds where we are invoking it directly
  and it does what we expect.

  We should check that running update-grub in a stock lxd container
  works as expected, and that this isn't due to some sort of launchpad
  sauce.  Provided it does work, we should remove the container check
  from the kernel postinst hook.

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



More information about the foundations-bugs mailing list