Merge ~ubuntu-core-dev/grub/+git/ubuntu:lp.564853 into ~ubuntu-core-dev/grub/+git/ubuntu:ubuntu

Proposed by Steve Langasek
Status: Rejected
Rejected by: Mathieu Trudel-Lapierre
Proposed branch: ~ubuntu-core-dev/grub/+git/ubuntu:lp.564853
Merge into: ~ubuntu-core-dev/grub/+git/ubuntu:ubuntu
Diff against target: 44 lines (+17/-0)
2 files modified
debian/changelog (+13/-0)
debian/postinst.in (+4/-0)
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Disapprove
Review via email: mp+362869@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

Why isn't this just a cherry-pick of the work I did to fix this in Debian?

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

It will be.

Rejecting since I'm taking the code by Colin from Debian.

review: Disapprove

Unmerged commits

6d8fff2... by Steve Langasek

apply debconf changes both to /etc/default/grub and to the ucf template

This avoids us showing ucf prompts when nothing has changed in either the
config file or in the package-provided template. ucf prompts will still be
shown only in the case that there is both a change to one of the
debconf-managed settings since the last update of grub, *and* there are
local changes to non-debconf-managed settings, because we cannot detect that
these are spurious.

Bug-Ubuntu: https://bugs.launchpad.net/ugs/564853

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index e900dc0..a62c928 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,16 @@
6+grub2 (2.02+dfsg1-5ubuntu12) UNRELEASED; urgency=medium
7+
8+ * debian/postinst.in: apply debconf changes both to /etc/default/grub and
9+ to the ucf template; this avoids us showing ucf prompts when nothing has
10+ changed in either the config file or in the package-provided template.
11+ LP: #564853. ucf prompts will still be shown only in the case that
12+ there is both a change to one of the debconf-managed settings since the
13+ last update of grub, *and* there are local changes to
14+ non-debconf-managed settings, because we cannot detect that these are
15+ spurious.
16+
17+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 07 Feb 2019 07:41:52 -0800
18+
19 grub2 (2.02+dfsg1-5ubuntu11) disco; urgency=medium
20
21 [ Mathieu Trudel-Lapierre ]
22diff --git a/debian/postinst.in b/debian/postinst.in
23index ae5df15..0253aa4 100644
24--- a/debian/postinst.in
25+++ b/debian/postinst.in
26@@ -377,14 +377,18 @@ case "$1" in
27
28 merge_debconf_into_conf "$tmp_default_grub" GRUB_CMDLINE_LINUX grub2/linux_cmdline
29 merge_debconf_into_conf "$tmp_default_grub" GRUB_CMDLINE_LINUX_DEFAULT grub2/linux_cmdline_default
30+ merge_debconf_into_conf /etc/default/grub GRUB_CMDLINE_LINUX grub2/linux_cmdline
31+ merge_debconf_into_conf /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT grub2/linux_cmdline_default
32
33 case @PACKAGE@ in
34 grub-pc)
35 merge_debconf_into_conf "$tmp_default_grub" GRUB_TIMEOUT grub-pc/timeout
36+ merge_debconf_into_conf /etc/default/grub GRUB_TIMEOUT grub-pc/timeout
37 sed -i -e 's/^\(GRUB_TIMEOUT=\)"\([0-9][0-9]*\)"/\1\2/' "$tmp_default_grub"
38 db_get grub-pc/hidden_timeout
39 if [ "$RET" = false ]; then
40 sed -i -e 's/^GRUB_HIDDEN_TIMEOUT=/#&/' "$tmp_default_grub"
41+ sed -i -e 's/^GRUB_HIDDEN_TIMEOUT=/#&/' /etc/default/grub
42 fi
43 ;;
44 grub-ieee1275)

Subscribers

People subscribed via source and target branches