mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Split low level code for creating dm devices.
The separate code for reloading device tables will be used in later features.
This commit is contained in:
committed by
Milan Broz
parent
6e1e11f6cd
commit
120ebea917
@@ -303,7 +303,7 @@ int VERITY_activate(struct crypt_device *cd,
|
||||
return r;
|
||||
}
|
||||
|
||||
r = dm_create_device(cd, name, CRYPT_VERITY, &dmd, 0);
|
||||
r = dm_create_device(cd, name, CRYPT_VERITY, &dmd);
|
||||
if (r < 0 && (dm_flags(cd, DM_VERITY, &dmv_flags) || !(dmv_flags & DM_VERITY_SUPPORTED))) {
|
||||
log_err(cd, _("Kernel doesn't support dm-verity mapping."));
|
||||
return -ENOTSUP;
|
||||
|
||||
Reference in New Issue
Block a user