Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Fri, 30 Nov 2018 10:49:53 +0100 (CET) References: From: Ondrej Kozina Message-ID: <2d544e26-a752-c75e-2bd7-52d857b4b5cc@redhat.com> Date: Fri, 30 Nov 2018 10:49:50 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Language: en-MW Content-Transfer-Encoding: 8bit Subject: Re: [dm-crypt] cryptsetup: WARNING: Target has an invalid header List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Carabus , dm-crypt@saout.de On 11/29/18 10:43 AM, Carabus wrote: Hi, > > buster /dev/disk/by-id/xxxx none 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? > > 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) > > but this header work fine when open with this command: > > cryptsetup open /dev/disk/by-id/xxxx --header /dev/disk/by-uuid/xxxx buster In that case it's probably bug in systemd crypttab handling. > > 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.