[Bug 1997779] Re: grub2-signed postinsts need to source debconf

Julian Andres Klode 1997779 at bugs.launchpad.net
Tue Jan 10 15:28:09 UTC 2023


The problem in the verification above was:

> Unknown device "/dev/disk/by-id/*": No such file or directory

aka we don't support virtio-blk in the debconf, because those don't have
by-id.  That's tracked in bug 1997797 (yes confusingly similar number).

I reran this using

$ multipass launch focal

Then in there checked dpkg-reconfigure did nothing, then upgraded to the
47.5 version:

Unpacking grub-efi-amd64-signed (1.173.4+2.04-1ubuntu47.5) over
(1.173.2~20.04.1+2.04-1ubuntu47.4) ...


After that, dpkg-reconfigure prompted me correctly.

** Tags removed: verification-failed verification-failed-focal
** Tags added: verification-done verification-done-focal

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

Title:
  grub2-signed postinsts need to source debconf

Status in grub2-signed package in Ubuntu:
  Fix Released
Status in grub2-signed source package in Focal:
  Fix Committed
Status in grub2-signed source package in Jammy:
  Triaged
Status in grub2-signed source package in Kinetic:
  Triaged
Status in grub2-signed source package in Lunar:
  Fix Released

Bug description:
  [Impact]
  dpkg-reconfigure grub-efi-*-signed do nothing, as debconf is weird and sourcing the script inside grub-multi-install is not enough.

  This means the questions about which ESP(s) to use might not get
  asked.

  [Test plan]
  Run dpkg-reconfigure grub-efi-amd64-signed, ensure it shows debconf prompts.

  same for grub-efi-arm64-signed

  [Where problems could occur]
  I'm not sure where problems could occur from adding a single line to the top of postinst that sources debconf when all other packages have it too, hmm.

  But of course debconf is always a bit weird. Maybe questions get asked
  twice, I don't know.

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




More information about the foundations-bugs mailing list