
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
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+.