summaryrefslogtreecommitdiffstats
path: root/mkosi.conf.d (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mkosi: Add github CLI to toolsDaan De Meyer5 days4-0/+4
|
* mkosi: Add shellcheck to toolsDaan De Meyer5 days4-0/+4
|
* mkosi: ruff is not available on all distrosDavide Cavalca2024-11-124-1/+10
| | | | Refactor to only install ruff where it is available
* mkosi: Install tpm2-tss-devel to tools for CentOS and Fedora instead of ↵Davide Cavalca2024-11-121-1/+1
| | | | | | | tss2-devel tss2-devel is the IBM TPM stack, we want the Intel TPM stack, so let's use the correct package.
* mkosi: Add pytest to toolsDaan De Meyer2024-11-074-0/+4
|
* mkosi: Add ruff and mypy to tools tree packagesDaan De Meyer2024-11-051-1/+3
|
* mkosi: Add extra tools tree packages required to run integration testsDaan De Meyer2024-11-025-0/+71
| | | | | | | | | | | | | | | With https://github.com/systemd/mkosi/pull/3164, we'll be able to run arbitrary commands in the mkosi sandbox, which has /usr from the tools tree if one is configured. Let's add the required packages to be able to run meson to setup the integration tests. This allows running the integration tests without having to install meson or other build dependencies on the host system. """ mkosi sandbox meson setup build mkosi sandbox meson compile -C build mkosi mkosi sandbox env SYSTEMD_INTEGRATION_TESTS=1 meson test -C build ... """
* mkosi: replace PackageManagerTrees= with SandboxTrees=Yu Watanabe2024-10-124-7/+9
|
* mkosi: Fix sections for settingsDaan De Meyer2024-10-093-6/+6
| | | | | Upstream we moved settings around a bit to different sections, let's adapt to those changes in the systemd repo.
* mkosi: Remove particle profileDaan De Meyer2024-10-0910-79/+0
| | | | | We have https://github.com/systemd/particleos for testing the particle stuff so let's drop it from the systemd repo as it's bit rotting.
* mkosi: Install util-linux-script on RawhideDaan De Meyer2024-09-051-0/+7
| | | | | | It's now subpackaged so we can build images without pulling in libutempter but we use script in the testsuite so let's install the subpackage.
* mkosi: Use apt patterns to install dependencies on Debian/UbuntuDaan De Meyer2024-09-031-7/+20
| | | | | | | | | Instead of parsing the human readable output of apt-cache, let's use apt patterns to figure out the dependencies. We also filter out virtual packages as apt will fail and say we need to install an implementation of the virtual package even if a package that provides the virtual package is already installed.
* mkosi: Make systemd package filtering more robustDaan De Meyer2024-09-034-8/+13
| | | | | | Let's not just filter everything with systemd in the name, but instead use the same list of volatile packages that we install to do the filtering.
* Merge pull request #34142 from DaanDeMeyer/update-distributionsLuca Boccassi2024-08-281-1/+1
|\ | | | | mkosi: Update distribution packaging commits
| * mkosi: Include noarch in dnf repoquery architecturesDaan De Meyer2024-08-281-1/+1
| | | | | | | | ukify is noarch so we should include noarch to get all results.
* | mkosi: use util-linux's autologinLuca Boccassi2024-08-282-4/+4
|/ | | | | | | | login is now from util-linux so credentials are supported. It also needs to be pulled in as it's Protected: yes rather than Essential: yes. Keep the old setting for Ubuntu as that still uses login from shadow.
* mkosi: Switch back to btrfsDaan De Meyer2024-08-051-2/+3
| | | | | | | 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: Enable Autologin= again on DebianDaan De Meyer2024-08-051-0/+4
| | | | | | | | Debian uses /usr/bin/login from the shadow package instead of util-linux which doesn't support credentials. Let's enable autologin the old fashioned way for now. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833256
* mkosi: fix typoYu Watanabe2024-08-021-1/+1
| | | | Follow-up for 7205fc7dc31eb2be3075ee6ba23ebe84324aa5cb.
* mkosi: Beef up testuser a bitDaan De Meyer2024-07-311-0/+1
| | | | Give it a password and add it to some common groups.
* mkosi: Fix typoDaan De Meyer2024-07-181-7/+6
| | | | | Our config parsing is flexible enough that this kind of worked surprisingly enough.
* mkosi: Drop util-linux from centos/fedora packagesDaan De Meyer2024-07-181-1/+0
| | | | It's already included in the packages list in mkosi.conf.
* mkosi: Build CentOS Stream 10 images by defaultDaan De Meyer2024-07-181-1/+1
| | | | | | | CentOS Stream 10 has a newer util-linux which means the terminal gets correctly resized to the size specified by mkosi. This is a much nicer experience than CentOS Stream 9 where you're stuck on 80x24 so let's make CentOS Stream 10 the default release to build.
* mkosi: Streamline running the integration tests without building systemdDaan De Meyer2024-07-182-15/+0
| | | | | | | | | | Let's document in detail how to build the integration test image and run the integration tests without building systemd. To streamline the process, we stop automatically using binaries from build/ when invoking mkosi directly and don't automatically use a tools tree anymore if systemd on the host is too old. Instead, we document these options in HACKING.md and change the mkosi meson target to automatically use the current build directory as an extra binary search path for mkosi.
* mkosi: Build initrd as a subimageDaan De Meyer2024-07-166-49/+0
| | | | | | | | | 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: Make epel repositories optional for CentOS Stream 9Daan De Meyer2024-07-158-8/+49
| | | | | | | | 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-1518-754/+78
| | | | | | | | | | | | | 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.
* mkosi: update fedora commit referenceDaan De Meyer2024-07-151-1/+1
| | | | | | | | | | | | * a3524fc837 Use a more precise Recommends for libkxbcommon * 980ede8c0f Drop machined revert * d569018a92 Rebuilt for the bin-sbin merge * 8881fa94ee Version 256.2 * 1cc4f83002 Link systemd-executor statically * 0319e62d9c Update dracut workaround * c96f54de22 Fix ELN build * 3f68c5d802 Only exclude dracut conflicts on non-fedora on upstream builds * 7db154308b Conditionalize dracut Conflicts more
* mkosi: Switch back to code.opensuse.org for opensuseDaan De Meyer2024-07-111-3/+3
| | | | | The commits on src.opensuse.org keep disappearing so let's switch back to code.opensuse.org.
* Merge pull request #33636 from DaanDeMeyer/ext4Daan De Meyer2024-07-105-17/+13
|\ | | | | Various integration test improvements
| * mkosi: update opensuse commit referenceDaan De Meyer2024-07-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 8c025c3bdf Accepting request 1184267 from Base:System |\ | * 735f8c4ba4 - Import commit 5a8eadd0c021758337a020c423f25a353bdb9b3c (merge of v255.8) For a complete list of changes, visit: https://github.com/openSUSE/systemd/compare/603cd1d4d81147d4f2eccd5e352064a4215119b4...5a8eadd0c021758337a020c423f25a353bdb9b3c - Drop 5003-Revert-run-pass-the-pty-slave-fd-to-transient-servic.patch as v255.8 contains the workaround (commit 639c922ede9485) for the broken commit 28459ba1f4df. * | 37853fecc3 Accepting request 1183029 from Base:System |/ * 638de11012 - Don't automatically clean unmodified config files up (bsc#1226415) * 369c023c24 reorder one more time... * ffa9f0ac80 reorder the runtime deps of the testsuite package so the format_spec_file thingy stop screwing up the spec file... * 12c1190a79 fix rev 1529: the devel packages are really needed by the testsuite script to install the dlopened libs into the image * ca8e7f54ce - systemd.spec: move a misplaced %endif in the testsuite sub-package. * b7944f5b14 - Merge systemd-coredump back into the main package (bsc#1091684) * 3fa0dea84a - Don't pull the devel packages in when installing the testsuite package.
| * TEST-06-SELINUX: Various fixesDaan De Meyer2024-07-101-10/+3
| | | | | | | | | | | | | | | | - 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
| * test: Switch to ncat instead of ncDaan De Meyer2024-07-104-3/+5
| | | | | | | | ncat is available in CentOS Stream 9 without having to enable EPEL.
| * TEST-55-OOMD: Switch to stress-ngDaan De Meyer2024-07-104-3/+4
| | | | | | | | | | stress-ng is available in OpenSUSE and in CentOS Stream without needing EPEL so let's switch to it instead of stress.
* | Merge pull request #33683 from DaanDeMeyer/sysextDaan De Meyer2024-07-102-0/+8
|\ \ | |/ |/| mkosi: Build a sysext if SYSEXT=1 is specified
| * mkosi: Build a sysext if SYSEXT=1 is specifiedDaan De Meyer2024-07-102-0/+8
| |
* | mkosi: Check for configured build directory if WIPE=1Daan De Meyer2024-07-104-4/+4
|/ | | | | Otherwise trying to use --wipe might fail if the build directory has not been configured but is not empty either.
* mkosi: Adapt configuration to take into account configuration reworkDaan De Meyer2024-07-0947-31/+1388
| | | | | | | | | | | | | | | | | 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.
* mkosi: Enable hyperscale-packages-experimental for CentOSDaan De Meyer2024-06-271-0/+1
| | | | This gets us a kernel with btrfs support.
* mkosi: Sanitizer improvementsDaan De Meyer2024-05-311-0/+19
| | | | | | | | | | | | | | | | - 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-301-19/+0
| | | | This reverts commit aef13ad0294b403993e19b424b26535fb65749f4.
* mkosi: Sanitizer improvementsDaan De Meyer2024-05-301-0/+19
| | | | | | | | | | | | | | | | - 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-3/+0
| | | | | | 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: Update fedora to latestDaan De Meyer2024-05-141-1/+1
| | | | | We drop the Fedora 40 job as the latest rawhide spec introduced dependencies that are not available in Fedora 40.
* mkosi: Drop usage of updates-testing for Fedora 40Daan De Meyer2024-05-091-9/+0
| | | | The util-linux update we need has migrated to the stable repositories.
* mkosi: Switch to fedora 40Daan De Meyer2024-05-072-1/+10
| | | | | | Enable updates-testing and use the most recent mirror to make sure we get util-linux 2.40.1 which contains a crucial fix to make sure the serial terminal in virtual machines works properly.
* mkosi: Disable ext4's orphan_file feature for centos imagesDaan De Meyer2024-05-061-0/+3
| | | | | | | Not supported by e2fsck from centos. We also disable building repart from source in CI as running it from the build directory means repart will run mkfs.ext4 from the host which doesn't know about the orphan_file feature causing it to fail.
* Build distribution packages in mkosiDaan De Meyer2024-03-074-12/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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. - ...
* Update to mkosi v19Daan De Meyer2023-11-281-39/+0
| | | | | | | | - 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
* Set default value for tools treeDaan De Meyer2023-11-091-1/+1
| | | | | This allows overriding it from CLI or previous config file if required.