]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
downgrade warning if setting preset failed 1833/head
authorUmut Tezduyar Lindskog <umuttl@axis.com>
Tue, 10 Nov 2015 14:47:39 +0000 (15:47 +0100)
committerUmut Tezduyar Lindskog <umuttl@axis.com>
Mon, 16 Nov 2015 10:47:23 +0000 (11:47 +0100)
src/core/main.c

index 33529c3e7681909e03bbaadbc0a0f30d713c8acf..fcfd6d375daff72913f4c16389fa314a3a451717 100644 (file)
@@ -1662,7 +1662,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.");
                 }