diff options
author | Greg KH <gregkh@linuxfoundation.org> | 2014-03-14 04:43:04 +0000 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-03-14 12:44:17 +0100 |
commit | 92f2f92edcad46ce4098ee26504edca0a1dad68e (patch) | |
tree | 9ad2337000ed976c22f42adf19595800671824a2 /src/core/main.c | |
parent | 06f021a8048583d66202e3ac5cd0a12386d33ac2 (diff) |
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/main.c')
-rw-r--r-- | src/core/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c index f1b06d8880..cc876efa9c 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1582,7 +1582,7 @@ int main(int argc, char *argv[]) { kmod_setup(); #endif hostname_setup(); - machine_id_setup(); + machine_id_setup(""); loopback_setup(); test_mtab(); |