yubikey-luks
yubikey-luks copied to clipboard
"Yubikey core error: no yubikey present" at boot
Hello!
I found an issue related to identifying Yubikey when I'm trying to open a LUKS disk at boot. When I add more entries to fstab I will get "Yubikey core error: no yubikey present" error message.
The issue happens with:
fstab
/dev/mapper/luks / ext4 errors=remount-ro 0 1
UUID=XXXXX /boot ext4 defaults 0 2
UUID=YYYYY /boot/efi vfat umask=0077 0 1
UUID=ZZZZZ /mnt/disk1 ext4 defaults,nofail,noatime 0 2
/dev/mapper/cryptodisk /mnt/disk2 ext4 defaults,nofail,noatime 0 2
crypttab
cryptodisk UUID=WWWWW none luks,discard,keyscript=/usr/share/yubikey-luks/ykluks-keyscript
The issue solved by commenting out external disks: fstab
/dev/mapper/luks / ext4 errors=remount-ro 0 1
UUID=XXXXX /boot ext4 defaults 0 2
UUID=YYYYY /boot/efi vfat umask=0077 0 1
#UUID=ZZZZZ /mnt/disk1 ext4 defaults,nofail,noatime 0 2
#/dev/mapper/cryptodisk /mnt/disk2 ext4 defaults,nofail,noatime 0 2
OS: Debian GNU/Linux 12 (bookworm) Kernel: 6.1.0-18-amd64 Package: 0.5.1+29.g5df2b95-6.1
Could you help to fix this please? Thank you!
Have a nice day!