[Bug 384633] Re: Grub Installer uses device name instead of UUID, leading to unbootable system

Ubfan 384633 at bugs.launchpad.net
Fri Sep 23 04:21:58 UTC 2022


Apparently a fix was included in the Ubuntu 22.04.1 ISO, since using
that ISO results in the correct root=UUID=xxxx parameter on the grub
menu's linux lines.  In earlier testing of the problem, grub-mkconfig
uses the (correct) device like /dev/sda2 in its output when the no
grub.cfg file was present for the target kernel.  When the grub.cfg file
was present, grub-mkconfig just copied the kernel parameters to the
output without any validation.

Three USB/USB installs were successful on machines with various hard
disk configurations: 1) sda 2)sda, sdb and 3)nvme0n1.  The USB install
media and USB target were assigned names of the next free sdx letters
after any hard disk assignments. In all cases, there was no use of
root=/dev/sdx on the linux boot lines.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub-installer in Ubuntu.
https://bugs.launchpad.net/bugs/384633

Title:
  Grub Installer uses device name instead of UUID, leading to unbootable
  system

Status in grub-installer package in Ubuntu:
  Confirmed

Bug description:
  After completing a fresh install, the grub.cfg on the target system
  uses the device name as the root= kernel parameter instead of the
  UUID, causing the system to fail to boot if the devices are enumerated
  differently.  Running update-grub on the target system regenerates the
  config file correctly using the UUID.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/384633/+subscriptions




More information about the foundations-bugs mailing list