You are not logged in.

#1 2019-11-10 20:30:27

vpetite
Member
Registered: 2019-11-10
Posts: 4
Website

[SOLVED] LUKS on LVM using sd-encrypt - error with grub

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

#2 2019-11-10 22:06:25

frostschutz
Member
Registered: 2013-11-15
Posts: 1,409

Re: [SOLVED] LUKS on LVM using sd-encrypt - error with grub

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)

Offline

#3 2019-11-10 22:29:01

vpetite
Member
Registered: 2019-11-10
Posts: 4
Website

Re: [SOLVED] LUKS on LVM using sd-encrypt - error with grub

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

#4 2019-11-10 22:32:26

frostschutz
Member
Registered: 2013-11-15
Posts: 1,409

Re: [SOLVED] LUKS on LVM using sd-encrypt - error with grub

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.

Offline

#5 2019-11-10 22:56:59

vpetite
Member
Registered: 2019-11-10
Posts: 4
Website

Re: [SOLVED] LUKS on LVM using sd-encrypt - error with grub

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

Board footer

Powered by FluxBB