-
Notifications
You must be signed in to change notification settings - Fork 106
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
Detecting that a LUKS volume uses clevis #314
Comments
The easy way would be using |
I'd hoped that
|
I find this last is weird. When asking for a clevis luks volume, it seems return error is different from a non clevis luks volume than for a clevis volume: ~# clevis luks list -d /dev/vda1 @somewhere-or-other : can you please clarify:
|
I wondered if it might be an old version. In short, it's RHEL 8.3, running the RH-supplied clevis 13.3:
As far as the specific output:
I'm not completely sure what you're looking for in the
|
I think that clevis luks list checks for a device having luks format, not being bound. That is why output is returning 0 in your case (not bound, but with luks format), and 1 in the case I posted. @somewhere-or-other : As you found the way to parse if bound, can we close this issue? |
Ah. So a non-LUKS volume would give the non-zero error code, vs a LUKS-but-not-using-clevis volume. I get it. Thank you for your help with this. Closing now. |
Is there an easy way to detect that a particular LUKS volume, is using Clevis, as opposed to just having a passphrase or similar?
I'm working on a patch to a Pacemaker/Corosync resource agent (ClusterLabs/resource-agents#1656), to support Clevis-unlocked crypt volumes. It seems to work as-is, but it relies on the admin to specify a "use_clevis=true" when setting it up. I'd much prefer to have an automatic detection mechanism, but I haven't found it yet.
I think that
clevis luks list
might do the job, but I'm still investigating that. I'm hoping there's a better tool to use.The text was updated successfully, but these errors were encountered: