View previous topic :: View next topic |
Author |
Message |
Tzuriel Apprentice
Joined: 01 Jun 2004 Posts: 260
|
Posted: Sat Jun 11, 2022 11:08 pm Post subject: [SOLVED] BLK_DEV_DM only as module, no option for built-in? |
|
|
I'm working another issue trying to get touchpad support going, and somewhere's in the mix I believe some option changed my device mapper support so that when I try to include BLK_DEV_DM into the kernel, it's only allowed as a module and not built-in.
I believe this is causing my initramfs to fail when booting.
Code: |
Cannot initialize device-mapper, Is dm_mod kernel module loaded?
Cannot use device gentoo, name is invalid or still in use.
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
Reading all physical volumes. This may take a while...
/dev/mapper/control: open failed: No such device
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
Incompatible libdevmapper 1.02.172 (2021-05-07) and kernel driver (unknown version).
...
|
Can anyone confirm that I should be able to make it build-in on a UEFI + LUKS + LVM + initramfs system, because I just don't remember what this was when I had it working.
Last edited by Tzuriel on Sun Jun 12, 2022 12:45 am; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54817 Location: 56N 3W
|
Posted: Sat Jun 11, 2022 11:25 pm Post subject: |
|
|
Tzuriel,
Both ways work. If BLK_DEV_DM is built in, its in the kernel binary.
If its a loadable module, it must be loaded by the initrd.
Since BLK_DEV_DM can only be selected an a module, one (or more) of its parent options will be a module. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Tzuriel Apprentice
Joined: 01 Jun 2004 Posts: 260
|
Posted: Sat Jun 11, 2022 11:46 pm Post subject: |
|
|
Ok,well something changed because I didn't have to load it before, but I'll give that a try.
So, I have a custom initramfs and from reading a wiki page, I guess I need to make sure the utility that loads the module is also inclluded in the initramfs? So ... either modprobe or insmod needs to be in there? I'm familiar w/ either static or walking the dep tree to get everything in there.
And then I just place that command in my init file?
Is that the proper way to load dm_mod as a module inside an initramfs? |
|
Back to top |
|
|
Tzuriel Apprentice
Joined: 01 Jun 2004 Posts: 260
|
Posted: Sun Jun 12, 2022 12:44 am Post subject: |
|
|
Ok, never mind, I found the problem.
I found that if
Code: |
Device Drivers -> DAX: direct access to differentiated memory
|
Is a module, then it sets BLK_DEV_DM to being a module as well with no option of it being built-in. Setting DAX to built-in allowed me to make the device mapper built-in as well.
Thanks for your help on this. |
|
Back to top |
|
|
|
|
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
|
|