summaryrefslogtreecommitdiffstats
path: root/mkosi.images/system/mkosi.extra (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mkosi: enable unprivileged user ns for integration testsLuca Boccassi2024-06-171-0/+4
| | | | | Ubuntu disables them by default in Noble, ship a sysctl to turn them back on so that tests can use them
* mkosi: Replace sysusers.d with useradd for test userDaan De Meyer2024-06-082-2/+0
| | | | | sysusers.d is not intended for regular users, so let's use useradd instead.
* mkosi: Make sure initrd coredumps are also stored in the journalDaan De Meyer2024-06-031-4/+0
| | | | | Let's also translate the coredump config into a dropin so we don't accidentally override any existing configuration.
* mkosi: Disable iscsiuio.socket as wellDaan De Meyer2024-06-031-0/+1
|
* mkosi: Sanitizer improvementsDaan De Meyer2024-05-311-0/+7
| | | | | | | | | | | | | | | | - Let's set the environment on the kernel command line so it applies to initrd and main system. - Let's add the necessary wrappers that are also added in test-functions. Unlike test-functions we don't use gcc/clang to get the library path as that requires installing gcc/clang in the initrd. - Let's drop the hack to get journald writing to the console and have it write to kmsg instead. We'll get the output either way. - Stop removing libstdc++ and sanitizer libraries from Arch Linux initrds and other images as it's required by the sanitizer libraries. - Add a workaround for specifying extra meson options for opensuse - Add a leak sanitizer suppression file as a workaround for a false positive leak in verify_selinuxmnt() in libselinux. We do a soname match because the stacktrace can't be properly symbolized on Debian.
* Revert "mkosi: Sanitizer improvements"Daan De Meyer2024-05-302-8/+0
| | | | This reverts commit aef13ad0294b403993e19b424b26535fb65749f4.
* mkosi: Sanitizer improvementsDaan De Meyer2024-05-302-0/+8
| | | | | | | | | | | | | | | | - Let's set the environment on the kernel command line so it applies to initrd and main system. - Let's add the necessary wrappers that are also added in test-functions. Unlike test-functions we don't use gcc/clang to get the library path as that requires installing gcc/clang in the initrd. - Let's drop the hack to get journald writing to the console and have it write to kmsg instead. We'll get the output either way. - Stop removing libstdc++ and sanitizer libraries from Arch Linux initrds and other images as it's required by the sanitizer libraries. - Add a workaround for specifying extra meson options for opensuse - Add a leak sanitizer suppression file as a workaround for a false positive leak in verify_selinuxmnt() in libselinux. We do a soname match because the stacktrace can't be properly symbolized on Debian.
* mkosi: Disable iscsi service and socketDaan De Meyer2024-05-291-0/+4
| | | | | We'll always start these on demand in integration tests that need them. No need to start them by default.
* mkosi: Disable journald rate-limitingDaan De Meyer2024-05-141-0/+5
|
* test: Run TEST-64-UDEV-STORAGE with mkosiDaan De Meyer2024-05-142-0/+3
| | | | | | | We add a configure script for each subtest to add the required qemu arguments. Co-authored-by: Richard Maw <richard.maw@codethink.co.uk>
* TEST-06-SELINUX: Simplify auto-relabelingDaan De Meyer2024-05-142-0/+4
| | | | | Let's ship a .autorelabel file so we can get rid of firstboot-autorelabel.service.
* mkosi: Configure coredump to store coredumps in the journal.Daan De Meyer2024-05-061-0/+4
| | | | | Makes it easier to debug coredumps that happen in CI as we can retrieve them via the journal.
* mkosi: Add missing SPDX lineDaan De Meyer2024-05-061-0/+2
|
* mkosi: Install dbus policy required by TEST-23-UNIT-FILEDaan De Meyer2024-05-061-0/+13
| | | | Co-authored-by: Richard Maw <richard.maw@codethink.co.uk>
* test: Don't persist journal in mkosi image if we're not debugging testsDaan De Meyer2024-04-301-8/+0
| | | | | | | | | If we're not debugging tests, there's no point in persisting the journal, so let's use the volatile journal storage mode in that case to avoid doing unnecessary work. We don't disable journal storage alltogether since various tests check that stuff is written to the journal.
* mkosi: Introduce particle profileDaan De Meyer2024-04-303-17/+0
| | | | | | | | | | | | | Unfortunately the current mkosi partitioning setup is a bit too avant-garde for the integration tests. Both in that distributions aren't ready for it yet (some more than others), and that software which we depend on in the integration tests isn't ready for it yet (e.g. libselinux does not read its configuration from /usr). Let's switch back to a more boring partioning setup by default but keep the fancy stuff around as a mkosi profile. This means that it can still be used for manually testing stuff by running "mkosi --profile particle -f qemu".
* mkosi: Make sure systemd-resolved is started on bootDaan De Meyer2024-04-251-0/+3
|
* Merge pull request #32352 from DaanDeMeyer/testDaan De Meyer2024-04-232-35/+0
|\ | | | | test: Various mkosi integration test improvements
| * mkosi: Run integration tests in CIDaan De Meyer2024-04-232-35/+0
| | | | | | | | | | | | | | | | | | | | We do the image build and run the tests in a btrfs loopback so we can make use of btrfs subvolumes and COW to keep the disk space requirements to a minimum and speed up the ephemeral copies we make of the image to run the tests. We also switch to building debug packages and publishing the built packages as artifacts.
* | mkosi: mask isc-dhcp-serverLuca Boccassi2024-04-231-0/+0
|/ | | | | | | | | isc-dhcp-server does not ship units, only sysv scripts, so the mkosi presets that disable it have no effect. The generated unit is started on each boot and fails, causing delays and noise. Mask it so that the generated unit is overridden. It is installed only to bring in binaries used by the networkd tests anyway.
* test: Add mkosi-based integration test runnerRichard Maw2024-04-181-0/+2
| | | | | The first two tests are included to ensure parallel test execution is demonstrable.
* Update debugging with vscode sectionDaan De Meyer2024-04-161-3/+0
| | | | | | | - We have ssh-generator now, so need for mkosi's Ssh= option anymore. - By enabling RuntimeBuildSources= by default, we don't need the gdb config file in the image anymore, since the build and source directories will be mounted at the expected locations.
* mkosi: Merge base and system imagesDaan De Meyer2024-03-279-0/+86
| | | | | | | | | | The only reason to have these split up is to be able to build extension images that use the base image as a base tree and install extra packages. Until we have such a use case, let's merge the base and system images to simplify things a bit. We keep the mkosi.images/ directory to not cause too many conflicts with the integration tests PR.
* mkosi: Remove testuser from base/mkosi.postinst.chrootRichard Maw2024-03-252-0/+2
| | | | | | The testuser user is only needed for integration tests, which are used in the system user and this config can be provided as drop-ins instead of inline in postinst scripts.
* Build distribution packages in mkosiDaan De Meyer2024-03-076-50/+0
| | | | | | | | | | | | | | | | | | | | | | | | Instead of running meson install and hoping for the best, let's build distribution packages from the downstream packaging specs. This gets us the following: - Vastly simplified mkosi scripts since we don't need a separate initrd image anymore but can just reuse the default mkosi initrd. - Almost everything can move to the base image as its not the basis anymore for the initrd and as such we don't need to care about the size anymore. - The systemd packages that get pulled in as dependencies of other packages get properly uninstalled and replaced with our packages that we built instead of just installing on top of an existing systemd installation with no guarantee that everything from that previous installation was removed. - Much better testing coverage as what we're testing is much closer to what will actually be deployed in distributions. - Immediate feedback if something we change breaks distribution packaging - We get integration with the distribution for free as we'll automatically use the proper directories and such instead of having to hack this into a mkosi build script. - ...
* Revert "mkosi: Don't fail on systemd-vconsole-setup.service failure for now"Frantisek Sumsal2024-03-051-3/+0
| | | | | | This doesn't seem to fail anymore. This reverts commit 84c7929cd461f6f1cc2c44c69877b9fd0676c794.
* Revert "mkosi: Disable cmdline addon test for now"Frantisek Sumsal2024-03-051-3/+6
| | | | | | Let's see if this finally works. This reverts commit e167a8283d5964ca0f903b3e362ab7e48a1ed2ab.
* Update to mkosi v19Daan De Meyer2023-11-288-0/+64
- Use mkosi.images/ instead of mkosi.presets/ - Use the .chroot suffix to run scripts in the image - Use BuildSources= match for the kernel build - Move 10-systemd.conf to mkosi.conf and rely on mkosi.local.conf for local configuration