summaryrefslogtreecommitdiffstats
path: root/src/core/machine-id-setup.h
diff options
context:
space:
mode:
authorGreg KH <gregkh@linuxfoundation.org>2014-03-14 05:43:04 +0100
committerTom Gundersen <teg@jklm.no>2014-03-14 12:44:17 +0100
commit92f2f92edcad46ce4098ee26504edca0a1dad68e (patch)
tree9ad2337000ed976c22f42adf19595800671824a2 /src/core/machine-id-setup.h
parentnetworkd: allow more than one static DNS server (diff)
downloadsystemd-92f2f92edcad46ce4098ee26504edca0a1dad68e.tar.xz
systemd-92f2f92edcad46ce4098ee26504edca0a1dad68e.zip
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]
Diffstat (limited to 'src/core/machine-id-setup.h')
-rw-r--r--src/core/machine-id-setup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/machine-id-setup.h b/src/core/machine-id-setup.h
index b9e6b4d674..b0583eefc8 100644
--- a/src/core/machine-id-setup.h
+++ b/src/core/machine-id-setup.h
@@ -21,4 +21,4 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-int machine_id_setup(void);
+int machine_id_setup(const char *root);