[Bug 1791200] Re: grub-pc does not allow preseeding install_devices

Mate Kukri 1791200 at bugs.launchpad.net
Thu Jun 13 13:49:49 UTC 2024


It is not clear if this is still an issue in up to date Ubuntu releases
and GRUBs, so I am setting this to  Incomplete.

If anyone is still experiencing this issue, please comment and/or open a
new bug.

** Changed in: grub2 (Ubuntu)
       Status: Triaged => Incomplete

** Changed in: grub2 (Ubuntu)
   Importance: High => Low

-- 
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/1791200

Title:
  grub-pc does not allow preseeding install_devices

Status in grub2 package in Ubuntu:
  Incomplete

Bug description:
  Background:
  Upon configuration the postinst maintainer script checks to see whether it needs to convert the debconf variable install_devices from the old device name format to the new 'by-id' format. It bases this decision on a version comparison against the "previously installed".

  In a new installation, this comparison is successful since the empty
  version string is older than any other version.

  postinst then goes on to check a few special cases where it can make
  informed decisions on whether the conversion was good without
  involving the user. Failing those checks it forces the debconf
  question to be presented to the user again with the converted device
  ids for confirmation.

  Problem:
  If an administrator has preseeded the install_devices question (using the new 'by-id' format) before installing grub-pc, then the above algorithm incorrectly decides that the user needs to confirm the devices again.

  Solution:
  The attached patch adds another special case that checks if the device IDs where already in the new 'by-id' format and in that case accepts them without asking the user again.

  Versions:
  I have observed this bug for many years, but only now gotten around to tracking it to its source. The patch is against version 2.02-2ubuntu8.4 of grub-pc.

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




More information about the foundations-bugs mailing list