mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-19 06:40:08 +01:00
cryptsetup: add --hw-opal and --hw-opal-only
Signed-off-by: Luca Boccassi <bluca@debian.org> Co-authored-by: Ondrej Kozina <okozina@redhat.com>
This commit is contained in:
@@ -50,7 +50,8 @@ bool isLUKS1(const char *type)
|
||||
|
||||
bool isLUKS2(const char *type)
|
||||
{
|
||||
return type && !strcmp(type, CRYPT_LUKS2);
|
||||
/* OPAL just changes the driver, header format is identical, so overload */
|
||||
return type && (!strcmp(type, CRYPT_LUKS2));
|
||||
}
|
||||
|
||||
int verify_passphrase(int def)
|
||||
|
||||
Reference in New Issue
Block a user