From 979ef53a268d6f54a309fc5c6015df5d4accbbd5 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Mon, 24 Nov 2014 09:43:29 +0100 Subject: machine-id-setup: add a machine_id_commit call to commit on disk a transient machine-id If /etc was read only at boot time with an empty /etc/machine-id, the latter will be mounted as a tmpfs and get reset at each boot. If the system becomes rw later, this functionality enables to commit in a race-free manner the transient machine-id to disk. --- src/core/machine-id-setup.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/machine-id-setup.h') diff --git a/src/core/machine-id-setup.h b/src/core/machine-id-setup.h index b0583eefc8..f7707c3bf9 100644 --- a/src/core/machine-id-setup.h +++ b/src/core/machine-id-setup.h @@ -21,4 +21,5 @@ along with systemd; If not, see . ***/ +int machine_id_commit(const char *root); int machine_id_setup(const char *root); -- cgit v1.2.3-54-g00ecf