cryptsetup-initramfs fails to get hashes with detached luks header
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Initramfs creation complains about "Device /dev/sdX is not a valid LUKS device." for a luks device with detached header.
Example /etc/crypttab as it is used:
#<name> <source device> <key file> <options>
luks_system PARTLABEL=LUKS none luks,header=
The issue seems to be with the command in /usr/share/
hash="$
$source was resolved to the device without the detached header. It seems if the detached header file would be used as "source" this command would work just like that. Otherwise --header should be passed additionally as a parameter with the detached header file/device.
In my case the created initramfs is booting and works. So for me the message about the not valid luks device is only a cosmetic thing. But it seems in case me or anyone else would need the legacy.so (checked in copy_libssl_
# lsb_release -rd
Description: Ubuntu 22.04.3 LTS
Release: 22.04
# apt-cache policy cryptsetup-
cryptsetup-
Installed: 2:2.4.3-1ubuntu1.2
Candidate: 2:2.4.3-1ubuntu1.2
Version table:
*** 2:2.4.3-1ubuntu1.2 500
500 http://
500 http://
100 /var/lib/
2:
500 http://
500 http://