chiark / gitweb /
main: introduce /etc/machine-id
authorLennart Poettering <lennart@poettering.net>
Fri, 4 Mar 2011 20:53:19 +0000 (21:53 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 4 Mar 2011 20:53:19 +0000 (21:53 +0100)
commitd7ccca2e3f86feb81a48e243d8bad78814659a74
tree93f0063f961ec21b31546778add98c3b1cfe5c21
parent63a723f3a7caf4eb1bc46a3849f59f27337924b7
main: introduce /etc/machine-id

This is supposed to play the same roles /var/lib/dbus/machine-id,
however fixes a couple of problems:

- It is available during early boot since it is stored in /etc

- Removes the ID from the D-Bus context and moves it into a system
  context, thus hopefully lowering hesitation by people to use it.

- It is generated at installation time. If the file is empty at boot
  time it will be mounted over with a randomly generated ID, which is
  not saved to disk. This is useful to support state-less machines with
  no transient or writable /etc configuration.
.gitignore
Makefile.am
man/machine-id.xml [new file with mode: 0644]
src/machine-id-main.c [new file with mode: 0644]
src/machine-id-setup.c [new file with mode: 0644]
src/machine-id-setup.h [new file with mode: 0644]
src/main.c