Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how do i set up automounting encrypted partition?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
picarica
Guru
Guru


Joined: 11 Aug 2018
Posts: 326

PostPosted: Mon Oct 28, 2019 6:19 pm    Post subject: how do i set up automounting encrypted partition? Reply with quote

so i would like to make my openrc or grub to automatically mount my /home encrypted partition but that it will still ask for passphrase
now i get error at but that dolvm couldnt found any lvm partition, i have this in my defaukt/grub

Code:

GRUB_CMDLINE_LINUX="dolvm crypt_home=UUID=4d663460-f28f-4aa6-882a-974187b7701a home=/dev/mapper/vg0-home"


i followed this guide https://wiki.gentoo.org/wiki/Full_Disk_Encryption_From_Scratch_Simplified
but i guess it works on for all encrypted system

this is my dissetup
Back to top
View user's profile Send private message
Princess Nell
l33t
l33t


Joined: 15 Apr 2005
Posts: 926

PostPosted: Sun Nov 03, 2019 5:43 pm    Post subject: Reply with quote

Rather than mounting it at grub level, do it via openrc. Configure /etc/conf.d/dmcrypt accordingly and make sure the dmcrypt service is started at boot level.
Code:

target='vg0-home'
source=UUID='4d663460-f28f-4aa6-882a-974187b7701a'
key='/full/path/to/homekey'

Plus fstab entry for /dev/mapper/vg0-home.

Actually, I just see that this is in the guide you were using.
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2733
Location: Here and Away Again

PostPosted: Thu Nov 21, 2019 12:03 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads in favour of fstab cant mount my encrypted /home partition.
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum