From 92f2f92edcad46ce4098ee26504edca0a1dad68e Mon Sep 17 00:00:00 2001 From: Greg KH Date: Fri, 14 Mar 2014 04:43:04 +0000 Subject: 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] --- src/core/machine-id-setup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 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 . ***/ -int machine_id_setup(void); +int machine_id_setup(const char *root); -- cgit v1.2.3-54-g00ecf