diff --git a/lib/setup.c b/lib/setup.c index 4883abf7..05f728b8 100644 --- a/lib/setup.c +++ b/lib/setup.c @@ -2440,6 +2440,9 @@ int crypt_compare_dm_devices(struct crypt_device *cd, case DM_INTEGRITY: r = _compare_integrity_devices(cd, s, t); break; + case DM_LINEAR: + r = (s->u.linear.offset == t->u.linear.offset) ? 0 : -EINVAL; + break; default: r = -ENOTSUP; }