Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
home part on lvm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Adrien.D
Apprentice
Apprentice


Joined: 18 Jan 2015
Posts: 157

PostPosted: Wed Mar 27, 2019 8:31 pm    Post subject: home part on lvm Reply with quote

Hi all,

I try to install my home directory to LVM + LUKS with cryptsetup tool.
I created luks OK, modified conf.d/dmcrypt file OK.

It works, but i must modify /etc/init.d/dmcrypt script.

I must add localmount to before line in depend() function and add after lvm.

If i don't do that, dmcrypt can't find the lvm logical volume i created for my home encrypted and i want the system open luks before starting mounting file systems.

Is it normal to do that or not (if not, is it a bug ?)

I don't want report the bug if i forgot a thing.

Thanks
_________________
Desktop : MSI Gaming Pro X470 - AMD Ryzen 5 2600X - RX 560 - OpenRC GNOME - gentoo-sources-6.1 LTS
Server : Acer Barebone - Intel i3-8100T - OpenRC CLI - gentoo-sources-5.4 LTS
VMs : A lot of VMS to practice Gentoo of course :) (proxmox, virtualbox)
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21724

PostPosted: Thu Mar 28, 2019 1:09 am    Post subject: Reply with quote

I would use /etc/conf.d/dmcrypt to influence the order, so that the init script can be left unmodified. This is hinted at in the comment at the top of the file:
/etc/conf.d/dmcrypt:
# For people who run dmcrypt on top of some other layer (like raid),
# use rc_need to specify that requirement.  See the runscript(8) man
# page for more information.
In your case, undo the changes to the init script and add to /etc/conf.d/dmcrypt:
Code:
rc_before="localmount"
rc_after="lvm"
Report back whether this works for you.
Back to top
View user's profile Send private message
Adrien.D
Apprentice
Apprentice


Joined: 18 Jan 2015
Posts: 157

PostPosted: Thu Mar 28, 2019 5:35 am    Post subject: Reply with quote

Yes it works !

It's nor a bug, it's a config problem solved by you :)

Thanks !

I didn't see this information into the file
_________________
Desktop : MSI Gaming Pro X470 - AMD Ryzen 5 2600X - RX 560 - OpenRC GNOME - gentoo-sources-6.1 LTS
Server : Acer Barebone - Intel i3-8100T - OpenRC CLI - gentoo-sources-5.4 LTS
VMs : A lot of VMS to practice Gentoo of course :) (proxmox, virtualbox)
Back to top
View user's profile Send private message
Adrien.D
Apprentice
Apprentice


Joined: 18 Jan 2015
Posts: 157

PostPosted: Sat Apr 06, 2019 2:25 pm    Post subject: Reply with quote

Ooops, I need help.

I tried on a new VM but i think i do same thing.
In conf.d/dmcrypt i use
rc_need="lvm" but i don't know why, now when i write passphrase at boot, i have this error :

no key available with this passphrase

If i do not start dmcrypt service at boot and I start it manually in the TTY and write the passphrase it's okay.

Can you help me ?
_________________
Desktop : MSI Gaming Pro X470 - AMD Ryzen 5 2600X - RX 560 - OpenRC GNOME - gentoo-sources-6.1 LTS
Server : Acer Barebone - Intel i3-8100T - OpenRC CLI - gentoo-sources-5.4 LTS
VMs : A lot of VMS to practice Gentoo of course :) (proxmox, virtualbox)
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21724

PostPosted: Sat Apr 06, 2019 3:31 pm    Post subject: Reply with quote

What keyboard layout do you use? Does your passphrase use characters that require different keypresses for a keyboard configured in default mode (often American English) versus your preferred input mode? (Qwerty vs Azerty is the most common issue here.) If you type your passphrase during early boot at a prompt that echoes it, do you see it echoing the characters you would expect?
Back to top
View user's profile Send private message
Adrien.D
Apprentice
Apprentice


Joined: 18 Jan 2015
Posts: 157

PostPosted: Sat Apr 06, 2019 4:09 pm    Post subject: Reply with quote

For my tests i use 1 letter : c (same on azerty or qwerty keyboard)

But at boot, when i write this letter, i see a new line when i type the first letter

After boot, no new line when i type the first letter.

I tried to use my system in en_US but same result.

I think an other service not started or missing thing during boot, that [/code]i have after
_________________
Desktop : MSI Gaming Pro X470 - AMD Ryzen 5 2600X - RX 560 - OpenRC GNOME - gentoo-sources-6.1 LTS
Server : Acer Barebone - Intel i3-8100T - OpenRC CLI - gentoo-sources-5.4 LTS
VMs : A lot of VMS to practice Gentoo of course :) (proxmox, virtualbox)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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