Comment 0 for bug 1835279

Revision history for this message
Claudio Matsuoka (cmatsuoka) wrote :

This is Linux version 4.15.0-54-generic (buildd@lgw01-amd64-014) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 (Ubuntu 4.15.0-54.58-generic 4.15.18), from pc-kernel_240.snap

Version signature: 4.15.0-54.58-generic 4.15.18

Running on: qemu-kvm, command line: kvm \
  -bios /usr/share/ovmf/OVMF.fd \
  -smp 2 -m 512 -netdev user,id=mynet0,hostfwd=tcp::8022-:22,hostfwd=tcp::8090-:80 \
  -device virtio-net-pci,netdev=mynet0 \
  -drive file=pc.img,format=raw

Commands that caused the problem:
cryptsetup -q --type luks2 --key-file <keyfile> luksFormat /dev/sda4
LD_PRELOAD=/lib/no-udev.so cryptsetup --type luks2 --key-file <keyfile> open /dev/sda4 crypt-data

Notes:
- See https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1589083 for more information on the no-udev workaround.
- The commands are scripted. Also tried to add a 200ms and 1s interval before opening the device.