[Bug 384633] Re: Grub Installer uses device name instead of UUID, leading to unbootable system
Ubfan
384633 at bugs.launchpad.net
Wed Aug 31 04:51:56 UTC 2022
Still present in Ubuntu 22.04 (original ISO). On a UEFI machine with
one hard disk (sda), install media on USB (sdb), and a target USB (sdc,
with sdc1 the EFI and sdc2 the root), run without network so no
additional installations to force a grub update, the grub.cfg file still
uses root=/dev/sdc2 on the linux kernel lines (default,advanced, and
recovery). Remove the install media, and the created USB will fail to
boot (gave up waiting for root on /dev/sdc2 which no longer exists, the
reboot will have the USB on sdb as the only USB present.
Yes, the UUIDs are present in the search lines, but the parameter root=/dev/sdc2 on the kernel line overrides everything else. Of course, the bad grub.cfg gets dumped into the hard disk's EFI, since another ancient bug, 1396379, leaves the target USB's EFI empty (manually unmounted and remounted the /dev/sdc1 to prevent messing up the host system). These two bugs make it unnecessarily difficult to simply make a full Ubuntu USB.
Please change status back, no fix was ever released.
** Changed in: grub-installer (Ubuntu)
Status: Fix Released => Confirmed
--
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