cryptsetup: WARNING: Target has an invalid header
Hello.
i`m trying to mount luks volume with detached header on boot (debian testing), exactly the same method, as i do on very old system, which is work fine before.
i use external usb flash with two partition, one for /boot (TYPE="ext3"), and another one for 10 mb partition for luks header (TYPE="crypto_LUKS")
in my crypttab i set
buster /dev/disk/by-id/xxxx none luks,header=/dev/disk/by-uuid/xxxx
where header have exact uuid of second partition of usb flash (crypto_LUKS)
but cryptsetup say, i`m do it wrong
cryptsetup: WARNING: Target buster has an invalid header /dev/disk/by-uuid/xxxx
but this header work fine when open with this command:
cryptsetup open /dev/disk/by-id/xxxx --header /dev/disk/by-uuid/xxxx buster
would you please give me examples of crypttab header= option which will work?
in case of header detached to external usb flash partition, with own uuid, type crypto_LUKS,
and in case of header is image file, which have not uuid, on ext file system on /boot/
?
On 11/29/18 10:43 AM, Carabus wrote:
Hi,
Quoted 2 lines
buster
/dev/disk/by-id/xxxxnone luks,header=/dev/disk/by-uuid/xxxx
Is it just simplified example or do you really pass identical string to both header= and data device parameters?
Quoted 7 lines
where header have exact uuid of second partition of usb flash (
crypto_LUKS)but cryptsetup say, i`m do it wrong
cryptsetup: WARNING: Target buster has an invalid header
/dev/disk/by-uuid/xxxx
I can't find this message anywhere in cryptsetup source code. What cryptsetup version did you use? (But I guess this error message originates in systemd-cryptsetup binary since it's systemd-cryptsetup what unlocks devices put in crypttab if you run distro with systemd)
Quoted 4 lines
but this header work fine when open with this command:
cryptsetup open
/dev/disk/by-id/xxxx--header/dev/disk/by-uuid/xxxxbuster
In that case it's probably bug in systemd crypttab handling.
Quoted 3 lines
would you please give me examples of crypttab
header=option which will work?
I don't think you did anything wrong. From crypttab documentation you should be able to pass same value in header= option of crypttab line as you would do with cryptsetup --header option.
Regards
O.
Hi,
Quoted 4 lines · Carabus
but cryptsetup say, i`m do it wrong
cryptsetup: WARNING: Target buster has an invalid header
/dev/disk/by-uuid/xxxx
That message doesn't come from cryptsetup upstream, but from the initramfs hook & boot scripts shipped in Debian's ‘cryptsetup-initramfs’ package. Between 2:2.0.3-2 and 2:2.0.5-1 the script choked when the ‘header’ value wasn't a regular file. The regression was fixed in 2:2.0.5-2, which transitioned to testing (aka Buster) earlier today :-)
Cheers,
Signature · 1 line
Guilhem.
hi, thanks for that info, now i see the incident is settled.
i will try to boot debian testing from luks with detached header next time. best regards.
пт, 30 нояб. 2018 г., 14:13 Guilhem Moulin [email protected]:
Quoted 18 lines
Hi,
Quoted 4 lines · Carabus
but cryptsetup say, i`m do it wrong
cryptsetup: WARNING: Target buster has an invalid header
/dev/disk/by-uuid/xxxxThat message doesn't come from cryptsetup upstream, but from the initramfs hook & boot scripts shipped in Debian's ‘cryptsetup-initramfs’ package. Between 2:2.0.3-2 and 2:2.0.5-1 the script choked when the ‘header’ value wasn't a regular file. The regression was fixed in 2:2.0.5-2, which transitioned to testing (aka Buster) earlier today :-)
Cheers,
--
Guilhem.