Merge ~xnox/grub:fix-postinst-empty-devices into ~ubuntu-core-dev/grub/+git/ubuntu:ubuntu

Proposed by Dimitri John Ledkov
Status: Merged
Merged at revision: e07b23ad87b50924af36ac86d1dddc3671b4155b
Proposed branch: ~xnox/grub:fix-postinst-empty-devices
Merge into: ~ubuntu-core-dev/grub/+git/ubuntu:ubuntu
Diff against target: 56 lines (+24/-2)
3 files modified
debian/changelog (+8/-0)
debian/grub-multi-install (+8/-1)
debian/postinst.in (+8/-1)
Reviewer Review Type Date Requested Status
Michael Vogt (community) Approve
Julian Andres Klode Pending
Ubuntu Core Development Team Pending
Review via email: mp+391438@code.launchpad.net

Commit message

postinst.in, grub-multi-install: fix logic of skipping installing onto any device, if one chose to not install bootloader on any device. LP: #1896608

To post a comment you must log in.
Revision history for this message
Michael Vogt (mvo) wrote :

This looks correct to me, I will try it later today on the machine that failed originally.

review: Approve
Revision history for this message
Michael Vogt (mvo) wrote :

Still approving (but added some ideas) - I tested the fix on the affected machine and it works as expected.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index a702a27..3d6e540 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
1grub2 (2.04-1ubuntu35) UNRELEASED; urgency=medium
2
3 * postinst.in, grub-multi-install: fix logic of skipping installing onto
4 any device, if one chose to not install bootloader on any device. LP:
5 #1896608
6
7 -- Dimitri John Ledkov <xnox@ubuntu.com> Mon, 28 Sep 2020 14:05:26 +0100
8
1grub2 (2.04-1ubuntu34) groovy; urgency=medium9grub2 (2.04-1ubuntu34) groovy; urgency=medium
210
3 * configure.ac: one more dejavu font search path11 * configure.ac: one more dejavu font search path
diff --git a/debian/grub-multi-install b/debian/grub-multi-install
index 9bd4089..bedc700 100755
--- a/debian/grub-multi-install
+++ b/debian/grub-multi-install
@@ -402,7 +402,14 @@ while :; do
402 db_fset grub-efi/install_devices_empty seen false402 db_fset grub-efi/install_devices_empty seen false
403 fi403 fi
404 else404 else
405 exit 1 # noninteractive405 # if question was seen we are done
406 # Otherwise, abort
407 db_fget grub-efi/install_devices_empty seen
408 if [ "$RET" = true ]; then
409 break
410 else
411 exit 1
412 fi
406 fi413 fi
407 else414 else
408 break415 break
diff --git a/debian/postinst.in b/debian/postinst.in
index e6dfe36..cedc137 100644
--- a/debian/postinst.in
+++ b/debian/postinst.in
@@ -685,7 +685,14 @@ case "$1" in
685 db_fset grub-pc/install_devices_empty seen false685 db_fset grub-pc/install_devices_empty seen false
686 fi686 fi
687 else687 else
688 exit 1 # noninteractive688 # if question was seen we are done
689 # Otherwise, abort
690 db_fget grub-pc/install_devices_empty seen
691 if [ "$RET" = true ]; then
692 break
693 else
694 exit 1
695 fi
689 fi696 fi
690 else697 else
691 break698 break

Subscribers

People subscribed via source and target branches