mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-16 21:29:59 +01:00
Silence active device detection message in batch mode.
This commit is contained in:
@@ -2426,6 +2426,7 @@ static int _get_device_active_name(struct crypt_device *cd, const char *data_dev
|
|||||||
log_err("Device %s is in use.", data_device);
|
log_err("Device %s is in use.", data_device);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
if (!opt_batch_mode)
|
||||||
log_std("Autodetected active dm device %s for data device %s.\n", buffer, data_device);
|
log_std("Autodetected active dm device %s for data device %s.\n", buffer, data_device);
|
||||||
}
|
}
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user