1 |
On Fri, Jul 19, 2019 at 12:37 PM Ian Zimmerman <itz@××××××××××××.org> wrote: |
2 |
> |
3 |
> On 2019-07-19 20:58, Adam Carter wrote: |
4 |
> |
5 |
> > I experimented found the following worked in /etc/default/grub; |
6 |
> > |
7 |
> > GRUB_DEVICE="PARTUUID=d3554d49-02" |
8 |
> > |
9 |
> > Which writes grub.cfg as; |
10 |
> > linux /vmlinuz-5.2.0-gentoo root=PARTUUID=d3554d49-02 ro |
11 |
> > init=/usr/lib/systemd/systemd iommu=pt raid=noautodetect |
12 |
> > |
13 |
> > PARTUUID looked up with blkid. No initramfs required :) |
14 |
> |
15 |
> I don't get this. blkid is userspace. The _kernel_ needs to know what |
16 |
> the root fs device is, before it even starts pid 1. |
17 |
|
18 |
The kernel init code is able to find a device given its PARTUUID. |
19 |
|
20 |
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/init/do_mounts.c?h=v4.19.59#n172 |