IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an
email to Administrator. User accounts are meant only to access repo
and report issues and/or generate pull requests.
This is a purpose-specific Git hosting for
BaseALT
projects. Thank you for your understanding!
Только зарегистрированные пользователи имеют доступ к сервису!
Для получения аккаунта, обратитесь к администратору.
<listitem><para>Determines whether the specified image is currently attached or not. Unless combined with the
<option>--quiet</option> switch this will show a short state identifier for the image. Specifically:</para>
<table>
<title>Image attachment states</title>
<tgroupcols='2'>
<colspeccolname='state'/>
<colspeccolname='description'/>
<thead>
<row>
<entry>State</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><option>detached</option></entry>
<entry>The image is currently not attached.</entry>
</row>
<row>
<entry><option>attached</option></entry>
<entry>The image is currently attached, i.e. its unit files have been made available to the host system.</entry>
</row>
<row>
<entry><option>attached-runtime</option></entry>
<entry>Like <option>attached</option>, but the the unit files have been made available transiently only, i.e. the <command>attach</command> command has been invoked with the <option>--runtime</option> option.</entry>
</row>
<row>
<entry><option>enabled</option></entry>
<entry>The image is currently attached, and at least one unit file associated with it has been enabled.</entry>
</row>
<row>
<entry><option>enabled-runtime</option></entry>
<entry>Like <option>enabled</option>, but the the unit files have been made available transiently only, i.e. the <command>attach</command> command has been invoked with the <option>--runtime</option> option.</entry>
</row>
<row>
<entry><option>running</option></entry>
<entry>The image is currently attached, and at least one unit file associated with it is running.</entry>
</row>
<row>
<entry><option>running-runtime</option></entry>
<entry>The image is currently attached transiently, and at least one unit file associated with it is running.</entry>
<listitem><para>Sets the maximum size in bytes that a specific portable service image, or all images, may grow
up to on disk (disk quota). Takes either one or two parameters. The first, optional parameter refers to a
portable service image name. If specified, the size limit of the specified image is changed. If omitted, the
overall size limit of the sum of all images stored locally is changed. The final argument specifies the size
limit in bytes, possibly suffixed by the usual K, M, G, T units. If the size limit shall be disabled, specify
<literal>-</literal> as size.</para>
<para>Note that per-image size limits are only supported on btrfs file systems. Also, depending on
<varname>BindPaths=</varname> settings in the portable service's unit files directories from the host might be
visible in the image environment during runtime which are not affected by this setting, as only the image
itself is counted against this limit.</para></listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Files and Directories</title>
<para>Portable service images are preferably stored in <filename>/var/lib/portables/</filename>, but are also
searched for in <filename>/etc/portables/</filename>, <filename>/run/systemd/portables/</filename>,
<filename>/usr/local/lib/portables/</filename> and <filename>/usr/lib/portables/</filename>. It's recommended not
to place image files directly in <filename>/etc/portables/</filename> or
<filename>/run/systemd/portables/</filename> (as these are generally not suitable for storing large or non-textual
data), but use these directories only for linking images located elsewhere into the image search path.</para>
</refsect1>
<refsect1>
<title>Profiles</title>
<para>When portable service images are attached a "profile" drop-in is linked in, which may be used to enforce
additional security (and other) restrictions locally. Four profile drop-ins are defined by default, and shipped in
<filename>/usr/lib/systemd/portable/profile/</filename>. Additional, local profiles may be defined by placing them
in <filename>/etc/systemd/portable/profile/</filename>. The default profiles are:</para>
<table>
<title>Profiles</title>
<tgroupcols='2'>
<colspeccolname='state'/>
<colspeccolname='description'/>
<thead>
<row>
<entry>Name</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><filename>default</filename></entry>
<entry>This is the default profile if no other profile name is set via the <option>--profile=</option> (see above). It's fairly restrictive, but should be useful for common, unprivileged system workloads. This includes write access to the logging framework, as well as IPC access to the D-Bus system.</entry>
</row>
<row>
<entry><filename>nonetwork</filename></entry>
<entry>Very similar to <filename>default</filename>, but networking is turned off for any services of the portable service image.</entry>
</row>
<row>
<entry><filename>strict</filename></entry>
<entry>A profile with very strict settings. This profile excludes IPC (D-Bus) and network access.</entry>
</row>
<row>
<entry><filename>trusted</filename></entry>
<entry>A profile with very relaxed settings. In this profile the services run with full privileges.</entry>
</row>
</tbody>
</tgroup>
</table>
<para>For details on this profiles, and their effects please have a look at their precise definitions,
e.g. <filename>/usr/lib/systemd/portable/profile/default/service.conf</filename> and similar.</para>
</refsect1>
<refsect1>
<title>Exit status</title>
<para>On success, 0 is returned, a non-zero failure code otherwise.</para>