You are not logged in.

#1 2020-05-23 04:30:41

pete_mav_mitchell
Guest

Error on boot opening LUKS (intermittent problem)

Hi guys,

I get an error on boot once in a while, probably once every two weeks.
Here's a screenshot of the error: https://imgur.com/v0qDcM6

Given it's intermittent and does not happen often, it's safe to assume it most likely related to my initramfs hooks order.

Some details...
BIOS, LVM on LUKS.

/dev/sdc1 contains boot partition
/dev/sdc2 is an encrypted (LUKS) partition with LVM volumes including:
   /dev/volgroup0/lv_root
   /dev/volgroup0/lv_home
   /dev/volgroup0/lv_swap
/etc/mkinitcpio.conf

MODULES=(ext4 nvidia atkbd)

HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 resume filesystems fsck)
/etc/default/grub

GRUB_ENABLE_CRYPTODISK=y

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 cryptdevice=/dev/sdc2:volgroup0:allow-discards nvidia-drm.modeset=1 apparmor=1 lsm=lockdown,yama,apparmor quiet resume=/dev/volgroup0/lv_swap"

I'm not sure how close to the left I should shift 'encrypt'?
I read 'encrypt' and 'lvm2' to go between 'block filesystems'

Also I can get rid of consolefont, really don't need this.

Thanks.

#2 2020-05-23 04:44:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Error on boot opening LUKS (intermittent problem)

Why aren't you setting the root parameter in your grub config?
https://wiki.archlinux.org/index.php/Dm … t_loader_2


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2020-05-23 05:03:08

pete_mav_mitchell
Guest

Re: Error on boot opening LUKS (intermittent problem)

jasonwryan wrote:

Why aren't you setting the root parameter in your grub config?
https://wiki.archlinux.org/index.php/Dm … t_loader_2

I'm not sure!?!?! I thought I had the 'root' specified at one time. It probably got removed by a copy/paste somewhere along the line.
Thanks! Good spot!

See how I go in the next week or two... amending to:

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 cryptdevice=/dev/sdc2:volgroup0:allow-discards root=/dev/volgroup0/lv_root resume=/dev/volgroup0/lv_swap nvidia-drm.modeset=1 apparmor=1 lsm=lockdown,yama,apparmor quiet"

Thanks again!

Last edited by pete_mav_mitchell (2020-05-23 05:22:53)

Board footer

Powered by FluxBB