Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian 12 Non root device Unlocking issues with Tang #457

Open
bigops opened this issue Mar 10, 2024 · 3 comments
Open

Debian 12 Non root device Unlocking issues with Tang #457

bigops opened this issue Mar 10, 2024 · 3 comments
Labels

Comments

@bigops
Copy link

bigops commented Mar 10, 2024

In Debian 12 non root devices are not unlocked with just /etc/crypttab entries (with _netdev). With only crypttab the system silently fails to unlock and does not wait for the password. Adding the mapped devices in /etc/fstab with the _netdev option successfuly gives the password prompt and unlocks with Tang. The behavior was different in Debian 11 where crypttab entry alone will unlock the device

@sarroutbi sarroutbi added the bug label Mar 10, 2024
@sarroutbi
Copy link
Collaborator

Hello @bigops : is this issue related to the new release, clevis-20?

@bigops
Copy link
Author

bigops commented Mar 11, 2024

The version as per dpkg is 19-2

@cbiedl
Copy link

cbiedl commented Jun 22, 2024

Debian maintainer here, also promising to look into this mailbox more often.
@bigops Sorry to hear about these issues. Although you've found a solution, I'd still like to investigate, so can you describe your setup a bit more in detail?
If I understand correctly you have two encrypted block devices. One holds the root filesystem and is unlocked as expected. The second is something different that however should be unlocked during boot. Important question: Should that unlocking happen in the initrd stage, or later, as part of the regular crypttab handling?
In the first case, adding ",initramfs" to the crypttab should help, see also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1000648#20 and /usr/share/doc/clevis-initramfs/README.Debian

@sarroutbi sarroutbi changed the title Debain 12 Non root device Unlocking issues with Tang Debian 12 Non root device Unlocking issues with Tang Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants