diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-05-31 12:12:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-09-09 18:58:57 +0200 |
commit | 8b29949a4142318bacf3d30751aa37b8f29b5c1e (patch) | |
tree | 824173ed6d3a6eea1a38d6258720cf0de82ce80a /src/machine | |
parent | core: Add support for PrivateUsers=identity (diff) | |
download | systemd-8b29949a4142318bacf3d30751aa37b8f29b5c1e.tar.xz systemd-8b29949a4142318bacf3d30751aa37b8f29b5c1e.zip |
machinectl: suppress redirection notice if --quiet is specified
Diffstat (limited to 'src/machine')
-rw-r--r-- | src/machine/machinectl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index 80c2522f9a..934cfb2774 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -1958,7 +1958,8 @@ static int clean_images(int argc, char *argv[], void *userdata) { static int chainload_importctl(int argc, char *argv[]) { 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 = strv_new("importctl", "--class=machine"); |