chiark / gitweb /
main: change check whether /etc is unpopulated to look for /etc/machine-id
authorLennart Poettering <lennart@poettering.net>
Fri, 4 Jul 2014 01:13:05 +0000 (03:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 4 Jul 2014 01:24:42 +0000 (03:24 +0200)
commitbaa1bdf70f21848fbe01d3f383ae0f59d86a9bf3
tree6eab1fc07184788fd236d0ea2387d6e351683661
parentfa229d09281d435153b4cfd138a2a62fa66d889b
main: change check whether /etc is unpopulated to look for /etc/machine-id

Previously, we checked whether /etc was completely empty. This makes it
difficult though for container managers such as nspawn to install a
small number of files (such as /etc/timezone), and have the system
otherwise populate its own tree.

Hence, change this by looking for /etc/machine-id, which should be a
good sign whether /etc is populated or not.
src/core/main.c