{crypt|verity}setup: mention volume name in some error messages

This commit is contained in:
Lennart Poettering
2023-06-01 18:49:43 +02:00
parent ce49a479d2
commit ffe0da297d
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -2324,13 +2324,13 @@ static int run(int argc, char *argv[]) {
return 0;
}
if (r < 0)
return log_error_errno(r, "crypt_init_by_name() failed: %m");
return log_error_errno(r, "crypt_init_by_name() for volume '%s' failed: %m", volume);
cryptsetup_enable_logging(cd);
r = crypt_deactivate(cd, volume);
if (r < 0)
return log_error_errno(r, "Failed to deactivate: %m");
return log_error_errno(r, "Failed to deactivate '%s': %m", volume);
} else
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Unknown verb %s.", verb);