chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
main: change check whether /etc is unpopulated to look for /etc/machine-id
[elogind.git]
/
src
/
core
/
main.c
diff --git
a/src/core/main.c
b/src/core/main.c
index 38835fc62008a724a4799a396226e51de6d62309..1ca899998ed54e43767f9159f373b389553ff915 100644
(file)
--- a/
src/core/main.c
+++ b/
src/core/main.c
@@
-1543,7
+1543,7
@@
int main(int argc, char *argv[]) {
if (in_initrd())
log_info("Running in initial RAM disk.");
- empty_etc =
dir_is_empty("/etc") >
0;
+ empty_etc =
access("/etc/machine-id", F_OK) <
0;
if (empty_etc)
log_info("Running with unpopulated /etc.");
} else {