Cannot initialize device-mapper
Issue #10
resolved
First time trying to set it up and I get a strange error when the image boots.
Enter passphrase for /dev/sdXX:
Cannot initialize device mapper. Is dm_mod kernel module loaded?
Cannot use device enc_root, name is invalid or still in use
Same error whether compiling the image myself or using the latest /bin package.(the one from some years ago is not compatible with luks 2).
The kernel has CONFIG_DM_CRYPT=m.
Everything is being run on a VirtualBox machine in case it has something to do with it.
Comments (2)
-
repo owner -
repo owner - changed status to resolved
- Log in to comment
Hi buddy,
You have your answer in what you pasted. Your kernel lack dmcrypt support, you built it as module but better-initramfs do not bundle any kernel modules unless you add them yourself there, or prepare a separated initramfs (you can use multiple together) with the module. Change =m to =y and it will go wonder.