1 |
On Sat, Jul 20, 2019 at 2:37 AM 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 |
|
19 |
Sorry I was misleading by not using chronological order. The steps are; |
20 |
1. Use blkid to look up the PARTUUID of the root partition |
21 |
2. Add this to /etc/default/grub as GRUB_DEVICE="PARTUUID=d3554d49-02" |
22 |
3. run grub-mkconfig |
23 |
4. Reboot |