Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] dracut fails to load lvm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 688
Location: USA

PostPosted: Tue Jan 03, 2023 2:47 am    Post subject: [SOLVED] dracut fails to load lvm Reply with quote

I have an LVM composed of three NVMEs and a partition on one of these is my /boot partition. To boot kernels 5.7.8 through 6.1.1 I used, e.g., dracut --kver 6.1.1-gentoo to create a working initramfs. Here's dracut.conf.
Code:
$ cat /etc/dracut.conf
# PUT YOUR CONFIG IN separate files
# in /etc/dracut.conf.d named "<name>.conf"
# SEE man dracut.conf(5) for options
add_dracutmodules+=" lvm "
hostonly="yes"

With kernel 6.1.2 that dracut command produces these errors which suggests that dracut can't find its lvm module. But
Code:
$ ls /usr/lib/dracut/modules.d/ | grep lvm
80lvmmerge
80lvmthinpool-monitor
90lvm

genlop suggests that the current version lvm2-2.03.17-r1 was first installed Nov. 28, 2022 and dracut-059 on Dec. 28, 2022.

Any hints on how to get dracut to create a working initramfs will be gratefully received.
[SOLVED] Thanks to sam_ for pointing out eselect news read 159. That was the problem. [/SOLVED]


Last edited by cfgauss on Thu Jan 05, 2023 4:51 am; edited 2 times in total
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1696

PostPosted: Tue Jan 03, 2023 3:39 am    Post subject: Reply with quote

Do you need to enable USE=lvm on sys-fs/lvm2, per the news item?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21757

PostPosted: Tue Jan 03, 2023 3:06 pm    Post subject: Reply with quote

dracut cannot find its lvm module because it was skipped:
https://dpaste.com/GDBCQ7BFY:
dracut: dracut module 'lvm' will not be installed, because command 'lvm' could not be found!
That suggests to me that type lvm will return an error instead of printing the path to lvm. I like sam_'s idea. If you still need help, please post the output of type lvm; lvm version ; emerge --pretend --verbose sys-fs/lvm2.
Back to top
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 688
Location: USA

PostPosted: Tue Jan 03, 2023 3:40 pm    Post subject: Reply with quote

sam_ wrote:
Do you need to enable USE=lvm on sys-fs/lvm2, per the news item?

Yikes! That was it. Many thanks.

Portage usually informs me after my emerge world of news items that affect me. I'm sorry that I somehow missed this one. Off to donate to the Gentoo Linux Foundation.
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 243

PostPosted: Tue Jan 03, 2023 11:07 pm    Post subject: Reply with quote

> Do you need to enable USE=lvm on sys-fs/lvm2, per the news item?

This got me too. Updated world --deep --newuse and rebooted to find my encrypted /home partition (volume group) would not mount. Because it didn't effing exist. But we gentoo users don't panic. No sir, we eselect news read.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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