You are not logged in.
Hi,
I'm following
Encrypting an entire system#LVM on LUKS
and I am getting the following error when I attempt to generate the grub configuration file.
$ grub-install /dev/sda
$ grub-mkconfig -o /boot/grub/grub.cfg
/etc/default/grub line:58: luks.name=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX=root root=/dev/mapper/root: command not found
As well with setting kernel params to rd.luks.name
I was able to generate grub.cfg fine with udev but for that, boot is just cycling through "GRUB Loading..." before it resets the device - which has most recent BIOS patch and is configured to legacy boot.
Cheers,
V
Last edited by vpetite (2019-11-11 18:46:00)
Offline
can you post the file? (/etc/default/grub)
are you perhaps using an editor with text wrapping feature and something wrapped into the next line when it shouldn't?
Last edited by frostschutz (2019-11-10 22:07:19)
Online
I'm using vim - no vimrc, encoding should not contain a bunch of garbage.
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX=""
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
GRUB_ENABLE_CRYPTODISK=y
GRUB_TIMEOUT_STYLE=menu
GRUB_TERMINAL_INPUT=console
GRUB_TERMINAL_OUTPUT=console
GRUB_GFXMODE=auto
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_DISABLE_RECOVERY=true
luks.name=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX=root root=/dev/mapper/root
The X's are my device root UUID from fstab
Last edited by vpetite (2019-11-10 22:38:07)
Offline
well, the last line just shouldn't be there. perhaps you meant to add it to one of the GRUB_CMDLINE strings. the way it is now, it's just wrong.
Online
That makes sense, thanks. This fixed the issue with grub. I also didn't have a bios_grub partition installed, so I think that's why it was looping. Grub is working fine now, except I can't get it to decrypt the drive, so I created a new post for that.
Last edited by vpetite (2019-11-11 18:45:26)
Offline