Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#66531 - [cryptsetup][json-c] no password prompt in initramfs
Attached to Project:
Arch Linux
Opened by zarak (zarak) - Monday, 04 May 2020, 10:42 GMT
Last edited by Christian Hesse (eworm) - Tuesday, 05 May 2020, 09:53 GMT
Opened by zarak (zarak) - Monday, 04 May 2020, 10:42 GMT
Last edited by Christian Hesse (eworm) - Tuesday, 05 May 2020, 09:53 GMT
|
Detailscryptsetup 2.3.2 breaks password prompt on boot (at the initramfs stage) to decrypt encrypted root partition.
The `running hook [encrypt]` is displayed, but no password prompt shows up. Keyboard seems to be working (I can return lines, and pressing keys show keycodes). Downgrading to cryptsetup 2.3.1 solves this issue. Configuration: `mkinitcpio.conf` ``` HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 filesystems fsck) ``` ``` $ bootctl --version systemd 245 (245.5-2-arch) +PAM +AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid ``` /boot/efi/loader/entries/arch.conf ``` $ cat arch.conf title Arch Linux linux /vmlinuz-linux initrd /amd-ucode.img initrd /initramfs-linux.img options cryptdevice=UUID=83dc202d-8014-4b12-887c-894c30ec1df9:cryptlvm root=/dev/mapper/vg-root resume=/dev/mapper/vg-swap ``` ``` $ sudo blkid ... /dev/nvme0n1p6: UUID="83dc202d-8014-4b12-887c-894c30ec1df9" TYPE="crypto_LUKS" PARTUUID="96213222-9455-cd42-a938-7c4b601885bb" ... ``` |
This task depends upon
Closed by Christian Hesse (eworm)
Tuesday, 05 May 2020, 09:53 GMT
Reason for closing: Fixed
Additional comments about closing: json-c 0.14-2
Tuesday, 05 May 2020, 09:53 GMT
Reason for closing: Fixed
Additional comments about closing: json-c 0.14-2
FS#66498?You'll need to replace the "cryptdevice=..." parameter with "rd.luks.name=83dc202d-8014-4b12-887c-894c30ec1df9=cryptlvm".
Then try to open your encrypted volume, adding option `--debug`.
I tried strace-ing it, not sure if it's useful (2nd photo) : `strace cryptsetup open /dev/nvme0n1p6 root`
So this version shows the same issue?
I did some more testing, and here's what I found: (pics attached)
- cryptsetup 2.3.2-1 and json-c 0.14-1 -> bug
- cryptsetup 2.3.1-3 and json-c 0.14-1 -> bug
- cryptsetup 2.3.1-1 and json-c 0.13.1-3 -> works (and currently on my machine)
I hope this better helps you. Let me know if and how I can help you further investigate this issue.
/dev/mapper/cryptlvm is active and is in use.
type: LUKS2
cipher: aes-xts-plain64
keysize: 512 bits
key location: keyring
device: /dev/nvme0n1p6
sector size: 512
offset: 32768 sectors
size: 502425615 sectors
mode: read/write
Sadly I can not reproduce... Perhaps opening an upstream issue makes sense. Would you do that?
Wondering if this could cause the issue... Are you running recent AMD CPU with broken RDRAND?
pacman -U https://www.archlinux.org/packages/testing/x86_64/json-c/download/
pacman -Sy cryptsetup