summaryrefslogtreecommitdiff
path: root/src/tmpfiles
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2022-10-28 18:08:58 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-10-29 05:29:47 +0900
commit9109009d242762e7f086cb7106fd2a08150d960f (patch)
tree2d85150bce27dc461d20fa54d91d4114bd07610d /src/tmpfiles
parentf5a0162d2007b549bcf9f6c60fdfd96ee593569f (diff)
downloadsystemd-9109009d242762e7f086cb7106fd2a08150d960f.tar.gz
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
Diffstat (limited to 'src/tmpfiles')
-rw-r--r--src/tmpfiles/tmpfiles.c4
1 files changed, 2 insertions, 2 deletions
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;
}