Discussion:
[dm-crypt] cryptsetup: lvm is not available
ms ~
2018-07-01 22:50:53 UTC
Permalink
Hi,

I am running Debian Stretch using a microSD on a Chromebook with an
encrypted root partition. When the laptop boots, it throws the following
messages:

cryptsetup (crypt-volume): lvm is not available
cryptsetup (crypt-volume): lvm is not available
Please unlock disk /dev/device (crypt-volume):

Once I input the passphrase and hit enter, it proceeds to boot up just fine
and everything works thereafter.

I am trying to figure out what's causing the message "cryptsetup
(crypt-volume): lvm is not available" to appear. I have looked into every
possible log (dmesg, syslog, journalctl -le) but the line "lvm is not
available" does not show up anywhere.

/etc/crypttab:
crypt-volume UUID=</dev/mmcblk1p2_uuid> none luks

/etc/fstab:
UUID=</dev/mapper/crypt-volume_uuid> / ext4 errors=remount-ro
0 1

kernel args:
console-tty1 cryptdevice=UUID=</dev/mmcblk1p2_uuid>:crypt-volume
root=/dev/mapper/crypt-volume rootwait ro quiet loglevel=0

lsblk /dev/mmcblk1:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk1 179:1024 0 14.9G 0 disk
├─mmcblk1p1 179:1025 0 64M 0 part
└─mmcblk1p2 179:1026 0 14.8G 0 part
└─crypt-volume 254:0 0 14.8G 0 crypt /

Most importantly, I am not using lvm at all. Any ideas where else to look?

thanks -MS
Stefan Klein
2018-07-02 11:02:00 UTC
Permalink
Post by ms ~
Hi,
cryptsetup (crypt-volume): lvm is not available
cryptsetup (crypt-volume): lvm is not available
Once I input the passphrase and hit enter, it proceeds to boot up just fine and everything works thereafter.
The message is printed by:
/usr/share/initramfs-tools/scripts/local-top/cryptroot

From my understanding this is just a check whether lvm is used and
available in initrd, so lvm volumes are activated before crypt so
crypt on top of lvm is supported.

regards,
Stefan

Loading...