chiark / gitweb /
machine-id: add --root option to operate on an alternate fs tree
authorGreg KH <gregkh@linuxfoundation.org>
Fri, 14 Mar 2014 04:43:04 +0000 (04:43 +0000)
committerTom Gundersen <teg@jklm.no>
Fri, 14 Mar 2014 11:44:17 +0000 (12:44 +0100)
commit92f2f92edcad46ce4098ee26504edca0a1dad68e
tree9ad2337000ed976c22f42adf19595800671824a2
parent06f021a8048583d66202e3ac5cd0a12386d33ac2
machine-id: add --root option to operate on an alternate fs tree

This makes it possible to initialize the /etc/machine-id file on an
arbitrary filesystem hierarchy.  This helps systems that wish to run
this at image creation time in a subdirectory, or from initramfs before
pivot-root is called.

[tomegun: converted to using _cleanup_free_ macros]
man/systemd-machine-id-setup.xml
src/core/machine-id-setup.c
src/core/machine-id-setup.h
src/core/main.c
src/machine-id-setup/machine-id-setup-main.c