Merge pull request #1833 from utezduyar/drop-warning-on-preset
drop warning if setting preset worked anyways
This commit is contained in:
commit
59a99b2007
|
@ -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.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue