Activating encrypted LVM partition with dmcrypt 07 August 2023, 00:29:42 Hello all, after successfully installing Artix OpenRC on my small SSD following this guide I was having trouble activating an additional encrypted LVM partition on my bigger HDD which holds my home folder. After adding the appropriate entry on /etc/conf.d/dmcrypt for it to open with a key on my root partition, at boot time it does get unlocked but the volume group on it wouldn't get activated, and therefore my home folder couldn't be mounted. The solution was to edit /etc/init.d/dmcrypt, adding lvm to the 'before' field like soCode: [Select]before checkfs fsck lvmHope this helps! 1 Likes
Re: Activating encrypted LVM partition with dmcrypt Reply #1 – 15 August 2023, 05:10:49 I found out later through the Gentoo Handbook's page on the Initscrypt system (i.e OpenRC) that it's better to make changes to files in /etc/conf.d/* and not in /etc/init.d/*, whoops...I reverted my change in /etc/init.d/dmcrypt and instead modified /etc/conf.d/lvm so that it now hasCode: [Select]rc_after="mdraid dmcrypt"And it's working just as well. My bad, I haven't used Gentoo or OpenRC before. 1 Likes