You are not logged in.

#1 2022-07-08 06:59:30

Rogach
Member
Registered: 2017-10-03
Posts: 17

duplicate `root` argument in grub.cfg linux options

I converted my system to have an encrypted root partition, and it seems to boot and works fine. However I am worried that linux options in grub.cfg have `root` repeated, and the first `root` is definitely incorrect. In my /etc/default/grub I have:

GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=UUID=89f7f8b1-95f0-4ed6-b0a9-1fd6a8e0ac85:root root=/dev/mapper/root"

But in grub.cfg (after running `grub-mkconfig -o /boot/grub/grub.cfg`) I have such lines:

linux /vmlinuz-linux root=UUID=2f3bbdfa-2d5f-4700-8512-7b8c0f5ad4af rw  cryptdevice=UUID=f6dfd527-8e2c-4d26-ac96-3941a96f5669
:root root=/dev/mapper/root

The first `root` entry (UUID=2f3b...) is referencing UUID of the partition inside the LUKS container, so it won't be available on boot time. Is that okay? Will the second `root` option always overwrite the first `root` option?

Offline

Board footer

Powered by FluxBB