[Bug 1053368] [NEW] grub-pc.config failed to retrieve and apply debconf database config
molostoff
1053368 at bugs.launchpad.net
Thu Sep 20 12:02:24 UTC 2012
Public bug reported:
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.
** 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/1053368
Title:
grub-pc.config failed to retrieve and apply debconf database config
Status in “grub2” package in Ubuntu:
New
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