From 9109009d242762e7f086cb7106fd2a08150d960f Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Fri, 28 Oct 2022 18:08:58 +0100 Subject: tmpfiles: downgrade missing creds/source path log to debug When installing systemd 252 in debian: Setting up systemd (252~rc3-2) ... Installing new version of config file /etc/systemd/logind.conf ... Installing new version of config file /etc/systemd/system.conf ... Installing new version of config file /etc/systemd/user.conf ... /usr/lib/tmpfiles.d/provision.conf:13: Credential 'login.motd' not specified, skipping line. /usr/lib/tmpfiles.d/provision.conf:14: Credential 'login.issue' not specified, skipping line. /usr/lib/tmpfiles.d/provision.conf:17: Credential 'network.hosts' not specified, skipping line. /usr/lib/tmpfiles.d/provision.conf:22: Credential 'ssh.authorized_keys.root' not specified, skipping line. /usr/lib/tmpfiles.d/systemd.conf:43: Copy source path '/.extra/tpm2-pcr-signature.json' does not exist, skipping line. /usr/lib/tmpfiles.d/systemd.conf:44: Copy source path '/.extra/tpm2-pcr-public-key.pem' does not exist, skipping line. Downgrade to debug level --- src/tmpfiles/tmpfiles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tmpfiles') diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 7687316695..784b895577 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -3335,7 +3335,7 @@ static int parse_line( if (laccess(i.argument, F_OK) == -ENOENT) { /* Silently skip over lines where the source file is missing. */ - log_syntax(NULL, LOG_INFO, fname, line, 0, "Copy source path '%s' does not exist, skipping line.", i.argument); + log_syntax(NULL, LOG_DEBUG, fname, line, 0, "Copy source path '%s' does not exist, skipping line.", i.argument); return 0; } @@ -3441,7 +3441,7 @@ static int parse_line( r = read_credential(i.argument, &i.binary_argument, &i.binary_argument_size); if (IN_SET(r, -ENXIO, -ENOENT)) { /* Silently skip over lines that have no credentials passed */ - log_syntax(NULL, LOG_INFO, fname, line, 0, + log_syntax(NULL, LOG_DEBUG, fname, line, 0, "Credential '%s' not specified, skipping line.", i.argument); return 0; } -- cgit v1.2.1