The subject is typically located in grub2 sources (http://bazaar.launchpad.net/~ubuntu-core- dev/ubuntu/quantal/grub2/quantal) (in debian/config.in), and in /var/lib/dpkg/info/grub-pc.config while installed.
The purpose of this file I think is to provide scripted actions to reconfigure installed package, being invoked (for example) within dpkg-reconfigure operation: dpkg-reconfigure -f noninteractive grub-pc The script does unconditional update of debconf-selections database, used as source for reconfiguration items to update. E.g. if I setup debconf-selections against grub2/linux_cmdline with adding new stuff, the installed and existing /etc/default/grub will stay unchanged as a result after dpkg-reconfigure, even more my administratively customized debconf-selections will be overwritten by this script to be the same as in /etc/default/grub. I use debconf-selections database as a source of parameters to imperatively initiate of updating/upgrading existing /etc/default/grub, but it is impossible, moreover it makes debconf-selections database dirty and thus - useless, since these db_set updates always come intact with /etc/default/grub hand changes after reconfiguring. So I am unable to understand the purpose of this unconditional update. >From other hand, all things become clear and working if I comment the code >piece: # if test -e /etc/default/grub ; then # . /etc/default/grub # db_set grub2/linux_cmdline "$GRUB_CMDLINE_LINUX" # db_set grub2/linux_cmdline_default "$GRUB_CMDLINE_LINUX_DEFAULT" # case grub-pc in # grub-pc) # if [ "${GRUB_TIMEOUT}" != "" ]; then # db_set grub-pc/timeout "$GRUB_TIMEOUT" # fi # if [ "${GRUB_HIDDEN_TIMEOUT}" != "" ]; then # db_set grub-pc/hidden_timeout true # elif egrep -q '^#?[[:space:]]*GRUB_HIDDEN_TIMEOUT=' /etc/default/grub; then # db_set grub-pc/hidden_timeout false # fi # ;; # esac # fi Please, tell me some words about what is the correct way with this script to use dpkg-reconfigure effectively! Any suggestions would be very helpful, thanks! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1053368 Title: grub-pc.config failed to retrieve and apply debconf database config To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1053368/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs