public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Using UUID for root disk in grub requires initramfs?
@ 2019-07-19  9:29 Adam Carter
  2019-07-19 10:27 ` Mick
  0 siblings, 1 reply; 6+ messages in thread
From: Adam Carter @ 2019-07-19  9:29 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 884 bytes --]

This
https://wiki.gentoo.org/wiki/GRUB2/Configuration_variables

has

GRUB_DISABLE_LINUX_UUID false If true, ${GRUB_DEVICE} is passed in the root
parameter on the kernel command line.

If false, ${GRUB_DEVICE_UUID} is passed in the root parameter on the kernel
command line when an initramfs is available.

So it looks like i can't set root= to a UUID unless i use an initramfs -
can anyone confirm?

In /usr/src/linux/admin-guide/kernel-parameters.txt it has;
root=           [KNL] Root filesystem
                        See name_to_dev_t comment in init/do_mounts.c.

And in do_mounts.c it mentions PARTUUID= and PARTLABEL= but i dont know C
so don't know what to make of it.

Background is that after adding a new disk the system doesn't boot, so i'm
assuming that the /dev/sdX device names are now pointing to different
hardware, so i want to fix that by using persistent names.

[-- Attachment #2: Type: text/html, Size: 1600 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-07-19 23:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-19  9:29 [gentoo-user] Using UUID for root disk in grub requires initramfs? Adam Carter
2019-07-19 10:27 ` Mick
2019-07-19 10:58   ` Adam Carter
2019-07-19 16:37     ` [gentoo-user] " Ian Zimmerman
2019-07-19 16:59       ` Mike Gilbert
2019-07-19 23:19       ` Adam Carter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox