mirror of
https://github.com/systemd/systemd.git
synced 2025-03-09 12:58:26 +03:00
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
This commit is contained in:
parent
f5a0162d20
commit
9109009d24
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user