]> git.ipfire.org Git - thirdparty/systemd.git/commit
mkosi: Build minimal images and enable related integration tests 32445/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 24 Apr 2024 19:21:34 +0000 (21:21 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 25 Apr 2024 19:06:30 +0000 (21:06 +0200)
commitc77dad706bbb039bd88d1256b7d35158acb68a5e
tree02f85a32c4c802f5133b45c31dbefd0cb924034b
parent69dc36f69bb31acbd1a692ffaff80b6618b4f15e
mkosi: Build minimal images and enable related integration tests

This commit adds definitions to build the minimal_0 and minimal_1
images with mkosi and includes them into the system image. We also
move the building of the various app-xxx and similar images that are
extremely minimal into the tests itself by moving the related logic
from install_verity_minimal() into a new function
install_extension_images() in util.sh. Because the mkosi /usr is
read-only, we now place the extension images in /tmp instead of
/usr/share.

Co-authored-by: Richard Maw <richard.maw@codethink.co.uk>
Co-authored-by: sam-leonard-ct <sam.leonard@codethink.co.uk>
26 files changed:
mkosi.images/minimal-0/mkosi.conf [new file with mode: 0644]
mkosi.images/minimal-0/mkosi.extra/opt/some_file [new file with mode: 0644]
mkosi.images/minimal-0/mkosi.extra/usr/lib/systemd/system/minimal-app0.service [new file with mode: 0644]
mkosi.images/minimal-0/mkosi.postinst [new file with mode: 0755]
mkosi.images/minimal-1/mkosi.conf [new file with mode: 0644]
mkosi.images/minimal-1/mkosi.extra/opt/some_file [new file with mode: 0644]
mkosi.images/minimal-1/mkosi.extra/usr/lib/systemd/system/minimal-app0.service [new file with mode: 0644]
mkosi.images/minimal-1/mkosi.postinst [new file with mode: 0755]
mkosi.images/minimal-base/mkosi.conf [new file with mode: 0644]
mkosi.images/minimal-base/mkosi.conf.d/10-arch.conf [new file with mode: 0644]
mkosi.images/minimal-base/mkosi.conf.d/10-centos-fedora.conf [new file with mode: 0644]
mkosi.images/minimal-base/mkosi.conf.d/10-debian-ubuntu-opensuse.conf [new file with mode: 0644]
mkosi.images/minimal-base/mkosi.conf.d/10-opensuse.conf [new file with mode: 0644]
mkosi.images/minimal-base/mkosi.extra/etc/os-release [new symlink]
mkosi.images/minimal-base/mkosi.extra/etc/resolv.conf [new file with mode: 0644]
mkosi.images/system/mkosi.conf
mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf
mkosi.images/system/mkosi.postinst.chroot
test/TEST-43-PRIVATEUSER-UNPRIV/test.sh
test/meson.build
test/test-functions
test/units/testsuite-29.sh
test/units/testsuite-43.sh
test/units/testsuite-50.dissect.sh
test/units/testsuite-50.sh
test/units/util.sh