summaryrefslogtreecommitdiffstats
path: root/mkosi.conf (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mkosi: Use shared extra tree between initrd and main imageDaan De Meyer4 days1-2/+1
| | | | | Let's share more between initrd and main system and use a shared extra tree to achieve that.
* Rework TEST-86-MULTI-PROFILE-UKIDaan De Meyer2024-10-211-2/+1
| | | | | | Now that mkosi supports generating UKI profiles, let's make use of that to generate the UKI profiles required for the test instead of doing it within the test itself.
* mkosi: Fix sections for settingsDaan De Meyer2024-10-091-4/+4
| | | | | Upstream we moved settings around a bit to different sections, let's adapt to those changes in the systemd repo.
* mkosi: Update to latestDaan De Meyer2024-10-091-0/+4
|
* mkosi: Stop installing bpftraceDaan De Meyer2024-10-021-1/+0
| | | | | | | bpftrace nudges the Fedora Rawhide images towards compiler-rt18 while the sanitizer builds pull in clang19, leading to the sanitizer libraries not being found at runtime. Let's drop bpftrace for now so that compiler-rt19 is pulled in in the main image.
* mkosi: Pass ASAN_OPTIONS to subimagesDaan De Meyer2024-10-021-0/+1
| | | | | | systemd built with sanitizers is installed in subimages and tools might get invoked in postinstall scripts so we have to disable ASAN in the subimages as well during the image build.
* mkosi: bump mkosi MinimumVersionZbigniew Jędrzejewski-Szmek2024-09-201-1/+1
| | | | | | dbff64ddf06f64ab94bd314df27d6c089b75de52 bumped the hash to a commit after 24.3, so let's tell the users that 25~devel is the minimum required.
* mkosi: Install llvmDaan De Meyer2024-08-141-0/+1
| | | | | For llvm-symbolizer which is required to sanitize address sanitizer reports.
* mkosi: Switch back to btrfsDaan De Meyer2024-08-051-3/+0
| | | | | | | The next commit will introduce a way to iterate on integration tests which depends on btrfs specific features. We leave CentOS on ext4 as its kernel does not support btrfs.
* mkosi: Switch to autologin via credentialsDaan De Meyer2024-07-311-2/+6
| | | | | | Let's use the newly added credentials to only enable autologin for /dev/console (systemd-nspawn) and /dev/hvc0 (qemu) instead of enabling autologin for every tty.
* mkosi: Bump device timeout even moreDaan De Meyer2024-07-231-1/+1
| | | | I still manage to hit it in some cases so let's bump again.
* mkosi: Bump default device timeout a littleDaan De Meyer2024-07-191-1/+1
| | | | | | We've been getting some integration test failures due to timeouts on finding the root partition device. Let's bump the default device timeout a little to see if it mitigates these failures.
* mkosi: Drop udev from Packages= listDaan De Meyer2024-07-181-1/+0
| | | | It's pulled in via VolatilePackages=, no need to put it in Packages=.
* mkosi: Fix formattingDaan De Meyer2024-07-181-23/+24
| | | | | All of our lists start on the next line, so let's make KernelCommandLine= fit that as well.
* mkosi: Remove enforcing=0 from default kernel command lineDaan De Meyer2024-07-171-1/+0
| | | | | | We already have selinux=0 in the default kernel command line so enforcing=0 is redundant. Instead, pass in enforcing=0 when we enable selinux in TEST-06-SELINUX.
* mkosi: Stop setting apparmor=0Daan De Meyer2024-07-171-1/+0
| | | | | | It doesn't get pulled in as a dependency anyway and kernel command line space is precious so let's remove apparmor=0 as it's a noop anyway.
* mkosi: Build initrd as a subimageDaan De Meyer2024-07-161-6/+3
| | | | | | | | | Let's make things a little more consistent and build the initrd explicitly as a subimage as well instead of relying on mkosi building it as part of the main image build. We drop the opensuse initrd postinst script as we don't use erofs by default anymore. We can always reintroduce it again later if needed.
* mkosi: Install binutilsDaan De Meyer2024-07-151-0/+1
|
* mkosi: Make epel repositories optional for CentOS Stream 9Daan De Meyer2024-07-151-5/+1
| | | | | | | | This allows us to add CI for CentOS Stream 10 as EPEL 10 doesn't exist yet and won't exist for quite some time. CentOS Stream 10 will be enabled later as soon as https://issues.redhat.com/browse/RHEL-46604 is resolved.
* mkosi: Introduce build imageDaan De Meyer2024-07-151-15/+26
| | | | | | | | | | | | | We want the exitrd image to be built with the latest systemd as well. As the exitrd image is built as part of mkosi.images, and all subimages are built before the main image, this implies the packages must be built as a subimage in mkosi.images/ as well. So we introduce the build image and move all logic related to building distribution packages there. This also has the nice side effect of slimming down the main image as the build dependencies are not installed into the main image anymore. It also makes sure the packages are built in a "clean" chroot without any of the other packages which we install in the main image available.
* Merge pull request #33636 from DaanDeMeyer/ext4Daan De Meyer2024-07-101-1/+4
|\ | | | | Various integration test improvements
| * TEST-06-SELINUX: Various fixesDaan De Meyer2024-07-101-1/+4
| | | | | | | | | | | | | | | | - Stop installing the policy in the initramfs as it's not really supported anyway (https://github.com/fedora-selinux/selinux-policy/issues/2221) - Stop relabeling on first boot and prefer to do it at image build time - Disable mkosi relabeling by default but enable it in CI - Build image as root in CI so the SELinux relabeling works properly
* | mkosi: Install erofs-utilsDaan De Meyer2024-07-101-0/+1
|/
* mkosi: Adapt configuration to take into account configuration reworkDaan De Meyer2024-07-091-12/+95
| | | | | | | | | | | | | | | | | In https://github.com/systemd/mkosi/pull/2847, the '@' specifier is removed, CLI arguments take priority over configuration files again and the "main" image is defined at the top level instead of in mkosi.images/. Additionally, not every setting from the top level configuration is inherited by the images in mkosi.images/ anymore, only settings which make sense to be inherited are inherited. This commit gets rid of all the usages of '@', moves the "main" image configuration from mkosi.images/system to the top level and gets rid of various hacks we had in place to deal with quirks of the old configuration parsing logic. We also remove usages of Images= and --append as these options are removed by the mentioned PR.
* ci: Switch to Ubuntu 24.04Daan De Meyer2024-06-081-3/+0
|
* mkosi: Include fewer modules in the initramfsDaan De Meyer2024-06-061-0/+3
| | | | | Let's only use mkosi's default list of modules instead of all of them.
* mkosi: Disable scratch device by defaultDaan De Meyer2024-06-051-0/+1
| | | | | We include scratch space in the rootfs image itself so we don't have need for the scratch device so let's disable it by default.
* mkosi: Sanitizer improvementsDaan De Meyer2024-05-311-7/+3
| | | | | | | | | | | | | | | | - 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: Add note about kernel command line limitDaan De Meyer2024-05-311-0/+2
|
* mkosi: Drop kernel command line to enable log contextDaan De Meyer2024-05-311-2/+0
| | | | | The log context is already enabled by virtue of the log level being set to debug, so no need to enable it explicitly.
* mkosi: Unify device timeout for CI and local runsDaan De Meyer2024-05-311-1/+1
| | | | | | Now that we use KVM and don't use repart anymore to create a root partition on first boot, let's see if we can use the same device timeout for both local and CI runs.
* Revert "mkosi: Sanitizer improvements"Daan De Meyer2024-05-301-3/+7
| | | | This reverts commit aef13ad0294b403993e19b424b26535fb65749f4.
* mkosi: Sanitizer improvementsDaan De Meyer2024-05-301-7/+3
| | | | | | | | | | | | | | | | - 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: Switch from btrfs to ext4Daan De Meyer2024-05-291-0/+3
| | | | | | Mounting multiple btrfs filesystems with the same fsid only works properly from kernel 6.7 onwards. Let's switch to ext4 for now which does support this.
* mkosi: Mask mdmonitor and isc-dhcp-server servicesDaan De Meyer2024-05-141-0/+3
| | | | | They always fail and do not ship with proper units so we can't disable them with presets so we mask them instead.
* mkosi: Make sure the kernel fails loudly on oops/panic/softlockupDaan De Meyer2024-05-091-0/+4
| | | | Helps with noticing kernel related failures.
* mkosi: Add raid=noautodetect to kernel command lineDaan De Meyer2024-05-091-0/+1
| | | | Should speed up boot times a little.
* mkosi: Insist on KVM, VSOCK and TPM by defaultDaan De Meyer2024-05-061-0/+3
| | | | | | | | By default mkosi will not run VMs with these features if they're not available, but since various stuff in systemd makes use of these, let's fail loudly if any of these are not available by default in systemd. Users can still override these defaults locally if they wish.
* test: Don't persist journal in mkosi image if we're not debugging testsDaan De Meyer2024-04-301-0/+1
| | | | | | | | | 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-301-1/+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".
* test: Various mkosi integration test improvementsDaan De Meyer2024-04-231-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Stop using logging module since the default output formatting is pretty bad. Prefer print() for now. - Log less, logging the full mkosi command line is rather verbose, especially when it contains multi-line dropins. - Streamline the journalctl command we output for debugging failed tests. - Don't force usage of the disk image format. - Don't force running without unit tests. - Don't force disabling RuntimeBuildSources. - Update documentation to streamline the command for running a single test and remove sudo as it's not required anymore. - Improve the console output by having the test unit's output logged to both the journal and the console. - Disable journal console log forwarding as we have journal forwarding as a better alternative. - Delete existing journal file before running test. - Delete journal files of succeeded tests to reduce disk usage. - Rename system_mkosi target to just mkosi - Pass in mkosi source directory explicitly to accomodate arbitrary build directory locations. - Add test interactive debugging if stdout is connected to a tty - Stop explicitly using the 'system' image since it'll likely be dropped soon. - Only forward journal if we're not running in debugging mode. - Stop using testsuite.target and instead just add the necessary extras to the main testsuite unit via the credential dropin. - Override type to idle so test output is not interleaved with status output. - Don't build mkosi target by default - Always add the mkosi target if mkosi is found - Remove dependency of the integration tests on the mkosi target as otherwise the image is always built, even though we configure it to not be built by default. - Move mkosi output, cache and build directory into build/ so that invocations from meson and regular invocations share the same directories. - Various aesthetic cleanups.
* mkosi: Build command line into the imageDaan De Meyer2024-04-191-20/+21
| | | | | This allows using systemd-vmspawn itself while still getting a decent experience.
* test: Add mkosi-based integration test runnerRichard Maw2024-04-181-1/+2
| | | | | The first two tests are included to ensure parallel test execution is demonstrable.
* mkosi: Extend default device timeout to 20 secondsRichard Maw2024-04-181-1/+1
| | | | | | A moderately heavily loaded system booting an image without a rootfs may timeout before the root device appears. 20 seconds is enough for a VM with 2 CPUs and 2GB RAM.
* Update debugging with vscode sectionDaan De Meyer2024-04-161-0/+1
| | | | | | | - 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: Don't log debug logs to consoleDaan De Meyer2024-04-141-1/+1
| | | | | | | We have various tools that log directly to the console, as well as pid1 which logs directly to the console when running in a container. Let's make sure that we don't log debug messages to the console by default, but keep the behavior when running in CI.
* mkosi: Update to latestDaan De Meyer2024-04-141-1/+1
|
* mkosi: Switch to linux-virtual on UbuntuDaan De Meyer2024-03-291-2/+0
| | | | | This now finally has support for credentials and erofs so let's switch to this much smaller kernel package that doesn't pull in linux-firmware.
* mkosi: Enable log contextDaan De Meyer2024-03-221-0/+2
|
* mkosi: Add BuildSourcesEphemeral=yesDaan De Meyer2024-03-081-0/+1
| | | | | | Required to make sure that any changes packaging specs make to the source files are thrown away after the build so they don't mess with the source tree.