From: Mirodin <Mirodin@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] Cryptsetup fails on boot when using option "keyfile-offset"
Date: Thu, 05 Aug 2021 13:24:56 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32333@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1031 bytes --]
New issue by Mirodin on void-packages repository
https://github.com/void-linux/void-packages/issues/32333
Description:
### System
* xuname: Void 5.12.19_1 x86_64 AuthenticAMD notuptodate rrrrmmnFFFF
* package: cryptsetup-2.3.6_1
### Expected behavior
When booting cryptsetup should use a keyfile starting at a specified offset of an USB stick.
### Actual behavior
On boot cryptsetup fails complaining about option `keyfile-offset` (see picture). It seems as though the option gets preceded with only one dash. Position of the option in the option string in /etc/crypttab does not matter so it is specific to this option.
![KesPyhv](https://user-images.githubusercontent.com/2410346/128341207-e5f24926-7b06-476e-bf70-15bcdbc304ad.jpg)
### Steps to reproduce the behavior
* Encrypt partition using a keyfile
* Use USB stick containing the key at an offset
* Reboot
```
#/etc/crypttab
home UUID=XXX /dev/disk/by-id/usb-USB_Flash_Disk_YYY-0:0 luks,keyfile-offset=512,keyfile-size=512,tries=3
```
reply other threads:[~2021-08-05 11:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32333@inbox.vuxu.org \
--to=mirodin@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).