From 4543a445a06d12868ad9229a8d7e725b0addf469 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Fri, 3 Nov 2023 14:41:59 +0100 Subject: [PATCH] Add hint about missing OPAL support in kernel. Unfortunately there is currently no way how to make difference between device lacking SED OPAL support state and kernel missing SED OPAL support via disabled interface via configure option. --- lib/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/setup.c b/lib/setup.c index 436ab3037..889c4d1fc 100644 --- a/lib/setup.c +++ b/lib/setup.c @@ -260,7 +260,7 @@ int crypt_opal_supported(struct crypt_device *cd, struct device *opal_device) if (r == -ENOTSUP) log_err(cd, _("cryptsetup library SED OPAL2 support is disabled.")); else - log_err(cd, _("Device %s does not support OPAL2 HW encryption."), + log_err(cd, _("Device %s or kernel does not support OPAL2 HW encryption."), device_path(opal_device)); r = -EINVAL; } else