[Bug 1053368] Re: grub-pc.config failed to retrieve and apply debconf database config

Marcus Tomlinson marcus.tomlinson at canonical.com
Thu Mar 5 13:00:49 UTC 2020


This release of Ubuntu is no longer receiving maintenance updates. If
this is still an issue on a maintained version of Ubuntu please let us
know.

** Changed in: grub2 (Ubuntu)
       Status: New => Incomplete

-- 
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/1053368

Title:
  grub-pc.config failed to retrieve and apply debconf database config

Status in grub2 package in Ubuntu:
  Incomplete

Bug description:
  debconf stored parameters in  configdb are ignored by
  /var/lib/dpkg/info/grub-pc.config at 'dpkg-reconfigure -f
  noninteractive grub-pc'

  Instead of apply configdb parameters (that are stored there before)
  the script in /var/lib/dpkg/info/grub-pc.config unconditionally
  updates them with parameters extracted from /etc/default/grub

  The intended behaviour in this case I suppose to extract parameters
  from configdb or any other source and set them to their defaults or
  any desired value, to be used in  /etc/default/grub , but the script
  does exactly the opposite: overwrites source data. Then, debconf uses
  configdb to apply these "new" old parameters again, and as a result I
  have configdb wiped with values from /etc/default/grub, and
  /etc/default/grub itself stays unchanged.

  So the consequence this behaviour has two penalties: original
  configuration data (a source) wiped out, actual grub config (target)
  stays unchanged.

  I have placed 'exit 0' at the beginning of this script and all things
  became right -  /etc/default/grub updated, debconf database holds
  intended data.

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



More information about the foundations-bugs mailing list