Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Using UUID for root disk in grub requires initramfs?
Date: Fri, 19 Jul 2019 09:29:29
Message-Id: CAC=wYCGVykRxQAfLO-tTMByebMy3cyxuK6n7z5qr1QTucGzK0w@mail.gmail.com
1 This
2 https://wiki.gentoo.org/wiki/GRUB2/Configuration_variables
3
4 has
5
6 GRUB_DISABLE_LINUX_UUID false If true, ${GRUB_DEVICE} is passed in the root
7 parameter on the kernel command line.
8
9 If false, ${GRUB_DEVICE_UUID} is passed in the root parameter on the kernel
10 command line when an initramfs is available.
11
12 So it looks like i can't set root= to a UUID unless i use an initramfs -
13 can anyone confirm?
14
15 In /usr/src/linux/admin-guide/kernel-parameters.txt it has;
16 root= [KNL] Root filesystem
17 See name_to_dev_t comment in init/do_mounts.c.
18
19 And in do_mounts.c it mentions PARTUUID= and PARTLABEL= but i dont know C
20 so don't know what to make of it.
21
22 Background is that after adding a new disk the system doesn't boot, so i'm
23 assuming that the /dev/sdX device names are now pointing to different
24 hardware, so i want to fix that by using persistent names.

Replies

Subject Author
Re: [gentoo-user] Using UUID for root disk in grub requires initramfs? Mick <michaelkintzios@×××××.com>