View previous topic :: View next topic |
Author |
Message |
cfgauss l33t
Joined: 18 May 2005 Posts: 688 Location: USA
|
Posted: Tue Jan 03, 2023 2:47 am Post subject: [SOLVED] dracut fails to load lvm |
|
|
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 |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1696
|
Posted: Tue Jan 03, 2023 3:39 am Post subject: |
|
|
Do you need to enable USE=lvm on sys-fs/lvm2, per the news item? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21757
|
Posted: Tue Jan 03, 2023 3:06 pm Post subject: |
|
|
dracut cannot find its lvm module because it was skipped: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 |
|
|
cfgauss l33t
Joined: 18 May 2005 Posts: 688 Location: USA
|
Posted: Tue Jan 03, 2023 3:40 pm Post subject: |
|
|
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 |
|
|
rburcham Apprentice
Joined: 20 Mar 2003 Posts: 243
|
Posted: Tue Jan 03, 2023 11:07 pm Post subject: |
|
|
> 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 |
|
|
|