Cannot initialize device-mapper

Issue #10 resolved
Former user created an issue

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)

  1. Piotr Karbowski repo owner

    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.

  2. Log in to comment