summaryrefslogtreecommitdiffstats
path: root/src/machine
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-05-31 12:12:24 +0200
committerLennart Poettering <lennart@poettering.net>2024-09-09 18:58:57 +0200
commit8b29949a4142318bacf3d30751aa37b8f29b5c1e (patch)
tree824173ed6d3a6eea1a38d6258720cf0de82ce80a /src/machine
parentcore: Add support for PrivateUsers=identity (diff)
downloadsystemd-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.c3
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");