diskimage-builder/diskimage_builder/elements/ubuntu-systemd-container
Ian Wienand 12b60c4088 Mount /sys RO
As noted inline, this works around potential issues by being a strong
indication you are in a container (e.g. [1]).  Since nothing should be
changing anything on the host/build system, this is a generically
safer way to operate.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1975588

Change-Id: Ic6802c4ffc2e825f129af10717860a2d1770fe80
2021-07-05 11:45:02 +10:00
..
root.d Mount /sys RO 2021-07-05 11:45:02 +10:00
test-elements Add ubuntu-systemd-container operating-system element 2018-10-31 14:22:28 +11:00
element-deps Add ubuntu-systemd-container operating-system element 2018-10-31 14:22:28 +11:00
element-provides Add ubuntu-systemd-container operating-system element 2018-10-31 14:22:28 +11:00
README.rst Add ubuntu-systemd-container operating-system element 2018-10-31 14:22:28 +11:00

========================
ubuntu-systemd-container
========================

The ``ubuntu-systemd-container`` element uses debootstrap for generating
a minimal image for use by machine containers. In contrast the ``ubuntu``
element uses the cloud-image as the initial base and the ``ubuntu-minimal``
builds an image to be used for hosts.

By default this element creates the latest LTS release.  The exact
setting can be found in the ``ubuntu-common`` element's ``environment.d``
directory in the variable ``DIB_RELEASE``.  If a different release of
Ubuntu should be created, the variable ``DIB_RELEASE`` can be set
appropriately.

Note that this element installs ``systemd-sysv`` as the init system for
18.04+.

.. element_deps::