mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 19:00:02 +01:00
Fix isLuks to initialise crypto backend (blkid instead is suggested anyway).
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@213 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
@@ -922,6 +922,11 @@ int crypt_isLuks(struct crypt_options *options)
|
||||
|
||||
log_dbg("Check device %s for LUKS header.", options->device);
|
||||
|
||||
if (init_crypto()) {
|
||||
log_err(cd, _("Cannot initialize crypto backend.\n"));
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
r = crypt_init(&cd, options->device);
|
||||
if (r < 0)
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user