machinectl: suppress redirection notice if --quiet is specified

This commit is contained in:
Lennart Poettering 2024-05-31 12:12:24 +02:00
parent fa693fdc7e
commit 8b29949a41

View File

@ -1958,7 +1958,8 @@ static int clean_images(int argc, char *argv[], void *userdata) {
static int chainload_importctl(int argc, char *argv[]) { static int chainload_importctl(int argc, char *argv[]) {
int r; int r;
log_notice("The 'machinectl %1$s' command has been replaced by 'importctl -m %1$s'. Redirecting invocation.", argv[optind]); if (!arg_quiet)
log_notice("The 'machinectl %1$s' command has been replaced by 'importctl -m %1$s'. Redirecting invocation.", argv[optind]);
_cleanup_strv_free_ char **c = _cleanup_strv_free_ char **c =
strv_new("importctl", "--class=machine"); strv_new("importctl", "--class=machine");