← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1892526] Re: dpkg-reconfigure grub-pc no longer prompts for grub-pc/install_devices

 

This bug was fixed in the package grub2 - 2.04-1ubuntu26.4

---------------
grub2 (2.04-1ubuntu26.4) focal; urgency=medium

  * grub-install: cherry-pick patch from grub-devel to make grub-install
    fault tolerant. Create backup of files in /boot/grub, and restore them
    on failure to complete grub-install. LP: #1891680
  * postinst.in: do not exit successfully when failing to show critical
    grub-pc/install_devices_failed and grub-pc/install_devices_empty
    prompts in non-interactive mode. This enables surfacing upgrade errors
    to the users and/or automation. LP: #1891680
  * postinst.in: do not attempt to call grub-install upon fresh install of
    grub-pc because it it a job of installers to do that after fresh
    install. Fixup for the issue unmasked by above. LP: #1891680
  * grub-multi-install: fix non-interactive failures for grub-efi like it
    was fixed in postinst for grub-pc. LP: #1891680
  * postinst.in: Fixup postinst.in, to attempt grub-install upon explicit
    dpkg-reconfigure grub-pc. LP: #1892526

 -- Dimitri John Ledkov <xnox@xxxxxxxxxx>  Tue, 08 Sep 2020 11:24:35
+0100

** Changed in: grub2 (Ubuntu Focal)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1892526

Title:
  dpkg-reconfigure grub-pc no longer prompts for grub-pc/install_devices

Status in grub2 package in Ubuntu:
  Fix Released
Status in grub2 source package in Trusty:
  Confirmed
Status in grub2 source package in Xenial:
  Confirmed
Status in grub2 source package in Bionic:
  Confirmed
Status in grub2 source package in Focal:
  Fix Released
Status in grub2 source package in Groovy:
  Fix Released

Bug description:
  [Impact]

   * dpkg-reconfigure grub-pc no longer reinstalls grub, as it should.

  [Test Case]

   * Set grub-pc/install_devices to some invalid device that does not
  exist (i.e. /dev/hda)

   * Execute $ sudo dpkg-reconfigure grub-pc

  One should expect attempts to grub-instal onto /dev/hda, fail that,
  and see dialogues asking which devices to install grub-pc onto, and
  successfully install them.

  [Regression Potential]

   * We are patching, the recently/newly added postinst condition to
  skip trying to install grub-install during typical/regular upgrades.
  Further tighten the conditions there, to still force install grub-
  install when executing grub-reconfigure to be inline with existing
  documentation that this is the command to use when one wishes to
  reinstall grub-pc interactively.

  [Other Info]
   
   * Original bug report

  I recently had a RAID-5 disk failure and was greeted by an inoperable
  grub due to not having installed grub on all the disks.  I temporarily
  fixed this problem by manually running "grub-install" on the other
  disks in the array and got my system working.

  Previously it was advised to run "dpkg-reconfigure grub-pc" and select
  the relevant disks to ensure that future grub updates installed on all
  the disks in the array.  This command no longer prompts for the
  install disks due to the changed introduced by
  https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1889556.  In
  /var/lib/dpkg/info/grub-pc.postinst, the following elif block
  immediately precedes the elif block that prompts for grub-
  pc/install_devices and short circuits on all recent grub versions:

    elif dpkg --compare-versions "$2" ge 2.04-1ubuntu26; then
      # Avoid the possibility of breaking grub on SRU update
      # due to ABI change
      :

  I can confirm this issue is present on 20.04.1 and it appears to be
  present on 18.04.4 per https://askubuntu.com/questions/1212569/dpkg-
  reconfigure-grub-pc-no-option-to-select-boot-device

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1892526/+subscriptions