[Bug 1824213] [NEW] GRUB_HIDDEN_TIMEOUT still referred to in postinst scripts despite change to GRUB_TIMEOUT_STYLE=hidden
Mathieu Trudel-Lapierre
mathieu.tl at gmail.com
Wed Apr 10 17:39:42 UTC 2019
Public bug reported:
We've moved to using GRUB_TIMEOUT_STYLE=hidden in /etc/default/grub, but
debian/postinst.in still references GRUB_HIDDEN_TIMEOUT variable and
attempts to set that in conffile handling:
case @PACKAGE@ in
grub-pc)
apply_conf_tweaks "$conf_files" merge_debconf_into_conf GRUB_TIMEOUT grub-pc/timeout
apply_conf_tweaks "$conf_files" sed_conf 's/^(GRUB_TIMEOUT=)"([0-9][0-9]*)"/\1\2/'
db_get grub-pc/hidden_timeout
if [ "$RET" = false ]; then
apply_conf_tweaks "$conf_files" sed_conf 's/^GRUB_HIDDEN_TIMEOUT=/#&/'
fi
;;
This may lead to confusion in grub's conffile handling and in the resulting /etc/default/grub, potentially leading to unnecessary debconf/ucf prompts for conffile changes.
** 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/1824213
Title:
GRUB_HIDDEN_TIMEOUT still referred to in postinst scripts despite
change to GRUB_TIMEOUT_STYLE=hidden
Status in grub2 package in Ubuntu:
New
Bug description:
We've moved to using GRUB_TIMEOUT_STYLE=hidden in /etc/default/grub,
but debian/postinst.in still references GRUB_HIDDEN_TIMEOUT variable
and attempts to set that in conffile handling:
case @PACKAGE@ in
grub-pc)
apply_conf_tweaks "$conf_files" merge_debconf_into_conf GRUB_TIMEOUT grub-pc/timeout
apply_conf_tweaks "$conf_files" sed_conf 's/^(GRUB_TIMEOUT=)"([0-9][0-9]*)"/\1\2/'
db_get grub-pc/hidden_timeout
if [ "$RET" = false ]; then
apply_conf_tweaks "$conf_files" sed_conf 's/^GRUB_HIDDEN_TIMEOUT=/#&/'
fi
;;
This may lead to confusion in grub's conffile handling and in the resulting /etc/default/grub, potentially leading to unnecessary debconf/ucf prompts for conffile changes.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1824213/+subscriptions
More information about the foundations-bugs
mailing list