summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-27 14:06:36 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-27 14:06:36 +0100
commit59a99b20073bff0924af50be3fce70e9082dffe0 (patch)
tree8f0cbf3821b09672bf9f35d2d8573d93afc55dcf /src
parentd353a16d1fe978093e8caae2743cd16356559d8d (diff)
parent287a0de4ad4d2f7510f914a5f1be65430df8561c (diff)
Merge pull request #1833 from utezduyar/drop-warning-on-preset
drop warning if setting preset worked anyways
Diffstat (limited to 'src')
-rw-r--r--src/core/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 97f904b031..ba1feedb9a 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1665,7 +1665,7 @@ int main(int argc, char *argv[]) {
if (empty_etc) {
r = unit_file_preset_all(UNIT_FILE_SYSTEM, false, NULL, UNIT_FILE_PRESET_ENABLE_ONLY, false, NULL, 0);
if (r < 0)
- log_warning_errno(r, "Failed to populate /etc with preset unit settings, ignoring: %m");
+ log_full_errno(r == -EEXIST ? LOG_NOTICE : LOG_WARNING, r, "Failed to populate /etc with preset unit settings, ignoring: %m");
else
log_info("Populated /etc with preset unit settings.");
}