]>
Commit | Line | Data |
---|---|---|
663996b3 MS |
1 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>systemd-machine-id-setup</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><style> |
2 | a.headerlink { | |
3 | color: #c60f0f; | |
4 | font-size: 0.8em; | |
5 | padding: 0 4px 0 4px; | |
6 | text-decoration: none; | |
7 | visibility: hidden; | |
8 | } | |
9 | ||
10 | a.headerlink:hover { | |
11 | background-color: #c60f0f; | |
12 | color: white; | |
13 | } | |
14 | ||
15 | h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink { | |
16 | visibility: visible; | |
17 | } | |
18 | </style><a href="index.html">Index </a>· | |
19 | <a href="systemd.directives.html">Directives </a>· | |
20 | <a href="../python-systemd/index.html">Python </a>· | |
21 | <a href="../libudev/index.html">libudev </a>· | |
5eef597e | 22 | <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 217</span><hr><div class="refentry"><a name="systemd-machine-id-setup"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>systemd-machine-id-setup — Initialize the machine ID in /etc/machine-id</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">systemd-machine-id-setup</code> </p></div></div><div class="refsect1"><a name="idm214171951712"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description">¶</a></h2><p><span class="command"><strong>systemd-machine-id-setup</strong></span> may |
663996b3 MS |
23 | be used by system installer tools to initialize the |
24 | machine ID stored in | |
25 | <code class="filename">/etc/machine-id</code> at install time | |
26 | with a randomly generated ID. See | |
27 | <a href="machine-id.html"><span class="citerefentry"><span class="refentrytitle">machine-id</span>(5)</span></a> | |
28 | for more information about this file.</p><p>This tool will execute no operation if | |
29 | <code class="filename">/etc/machine-id</code> is already | |
30 | initialized.</p><p>If a valid D-Bus machine ID is already | |
14228c0d | 31 | configured for the system, the D-Bus machine ID is |
663996b3 MS |
32 | copied and used to initialize the machine ID in |
33 | <code class="filename">/etc/machine-id</code>.</p><p>If run inside a KVM virtual machine and a UUID | |
14228c0d | 34 | is passed via the <code class="option">-uuid</code> option, this |
663996b3 MS |
35 | UUID is used to initialize the machine ID instead of a |
36 | randomly generated one. The caller must ensure that the | |
37 | UUID passed is sufficiently unique and is different | |
5eef597e | 38 | for every booted instanced of the VM.</p><p>Similar, if run inside a Linux container |
663996b3 MS |
39 | environment and a UUID is set for the container this |
40 | is used to initialize the machine ID. For details see | |
41 | the documentation of the <a class="ulink" href="http://www.freedesktop.org/wiki/Software/systemd/ContainerInterface" target="_top">Container | |
5eef597e MP |
42 | Interface</a>.</p><p>Use |
43 | <a href="systemd-firstboot.html"><span class="citerefentry"><span class="refentrytitle">systemd-firstboot</span>(1)</span></a> | |
44 | to initialize the machine ID on mounted (but not | |
45 | booted) system images.</p></div><div class="refsect1"><a name="idm214171942352"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options">¶</a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="--root=root"><span class="term"><code class="option">--root=<em class="replaceable"><code>root</code></em></code></span><a class="headerlink" title="Permalink to this term" href="#--root=root">¶</a></dt><dd><p>Takes a directory path | |
60f067b4 JS |
46 | as an argument. All paths will be |
47 | prefixed with the given alternate | |
48 | <em class="replaceable"><code>root</code></em> path, | |
49 | including config search paths. | |
50 | </p></dd><dt id="-h"><span class="term"><code class="option">-h</code>, </span><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#-h">¶</a></dt><dd><p><a name="help-text"></a>Print a short help text and exit. | |
5eef597e MP |
51 | </p></dd><dt id="--version"><span class="term"><code class="option">--version</code></span><a class="headerlink" title="Permalink to this term" href="#--version">¶</a></dt><dd><p><a name="version-text"></a>Print a short version string and exit.</p></dd></dl></div></div><div class="refsect1"><a name="idm214175837872"></a><h2 id="Exit status">Exit status<a class="headerlink" title="Permalink to this headline" href="#Exit%20status">¶</a></h2><p>On success, 0 is returned, a non-zero failure |
52 | code otherwise.</p></div><div class="refsect1"><a name="idm214175836592"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also">¶</a></h2><p> | |
663996b3 MS |
53 | <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, |
54 | <a href="machine-id.html"><span class="citerefentry"><span class="refentrytitle">machine-id</span>(5)</span></a>, | |
5eef597e MP |
55 | <a href="dbus-uuidgen.html"><span class="citerefentry"><span class="refentrytitle">dbus-uuidgen</span>(1)</span></a>, |
56 | <a href="systemd-firstboot.html"><span class="citerefentry"><span class="refentrytitle">systemd-firstboot</span>(1)</span></a> | |
663996b3 | 57 | </p></div></div></body></html> |