|
101 | 101 | <term><option>--runtime</option></term> |
102 | 102 |
|
103 | 103 | <listitem><para>When specified the unit and drop-in files are placed in |
104 | | - <filename>/run/systemd/system/</filename> instead of <filename>/etc/systemd/system/</filename>. Images attached |
105 | | - with this option set hence remain attached only until the next reboot, while they are normally attached |
106 | | - persistently.</para></listitem> |
| 104 | + <filename>/run/systemd/system.attached/</filename> instead of |
| 105 | + <filename>/etc/systemd/system.attached/</filename>. Images attached with this option set hence remain attached |
| 106 | + only until the next reboot, while they are normally attached persistently.</para></listitem> |
107 | 107 | </varlistentry> |
108 | 108 |
|
109 | 109 | <varlistentry> |
|
167 | 167 | <listitem><para>All unit files of types <filename>.service</filename>, <filename>.socket</filename>, |
168 | 168 | <filename>.target</filename>, <filename>.timer</filename> and <filename>.path</filename> which match the |
169 | 169 | indicated unit file name prefix are copied from the image to the host's |
170 | | - <filename>/etc/systemd/system/</filename> directory (or <filename>/run/systemd/system/</filename> — depending |
171 | | - whether <option>--runtime</option> is specified, see above).</para></listitem> |
| 170 | + <filename>/etc/systemd/system.attached/</filename> directory (or |
| 171 | + <filename>/run/systemd/system.attached/</filename> — depending whether <option>--runtime</option> is |
| 172 | + specified, see above), which is included in the built-in unit search path of the system service |
| 173 | + manager.</para></listitem> |
172 | 174 |
|
173 | 175 | <listitem><para>For unit files of type <filename>.service</filename> a drop-in is added to these copies that |
174 | 176 | adds <varname>RootDirectory=</varname> or <varname>RootImage=</varname> settings (see |
|
330 | 332 | to place image files directly in <filename>/etc/portables/</filename> or |
331 | 333 | <filename>/run/systemd/portables/</filename> (as these are generally not suitable for storing large or non-textual |
332 | 334 | data), but use these directories only for linking images located elsewhere into the image search path.</para> |
| 335 | + |
| 336 | + <para>When a portable service image is attached, matching unit files are copied onto the host into the |
| 337 | + <filename>/etc/systemd/system.attached/</filename> and <filename>/run/systemd/system.attached/</filename> |
| 338 | + directories. When an image is detached, the unit files are removed again from these directories.</para> |
333 | 339 | </refsect1> |
334 | 340 |
|
335 | 341 | <refsect1> |
|
0 commit comments