summaryrefslogtreecommitdiffstats
path: root/mkosi.conf.d (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mkosi: Install libxslt on CentOS/Fedora instead of xsltprocDaan De Meyer4 days1-1/+1
| | | | | | Same package, but xsltproc is a very recently introduced Provides for libxslt, and isn't available on CentOS Stream 9, so let's install the package directly instead.
* mkosi: Make path exclude more genericDaan De Meyer12 days1-1/+4
| | | | | | | | The systemd rpms we try to install in packit have /usr/bin/bash and /usr/bin/python3 as dependencies which breaks dnf5 because mkosi doesn't download filelists metadata and https://bugzilla.redhat.com/show_bug.cgi?id=2263771 is still not fixed almost a year after being reported.
* mkosi: Add docbook toolsDaan De Meyer2025-01-034-0/+9
|
* mkosi: add libopenssl devel package to openSUSE tools treeAntonio Alvarez Feijoo2024-12-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise, the build fails with: ``` INFO: autodetecting backend as ninja INFO: calculating backend command to run: /usr/bin/ninja -C /mnt/work/src/systemd/upstream-fork/main/build-mkosi ninja: Entering directory `/mnt/work/src/systemd/upstream-fork/main/build-mkosi' [463/2561] Compiling C object src/shared/libsystemd-shared-258.a.p/openssl-util.c.o FAILED: src/shared/libsystemd-shared-258.a.p/openssl-util.c.o cc -Isrc/shared/libsystemd-shared-258.a.p -Isrc/shared -I../src/shared -Isrc/basic -I../src/basic -Isrc/fundamental -I../src/fundamental -Isrc/systemd -I../src/systemd -I. -I.. -I../src/libsystemd/sd-bus -I../src/libsystemd/sd-device -I../src/libsystemd/sd-event -I../src/libsystemd/sd-hwdb -I../src/libsystemd/sd-id128 -I../src/libsystemd/sd-journal -I../src/libsystemd/sd-json -I../src/libsystemd/sd-netlink -I../src/libsystemd/sd-network -I../src/libsystemd/sd-path -I../src/libsystemd/sd-resolve -I../src/libsystemd/sd-varlink -I/usr/include/blkid -I/usr/include/libmount -I/usr/include/p11-kit-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O0 -g -Wno-missing-field-initializers -Wno-unused-parameter -Wno-nonnull-compare -Warray-bounds -Warray-bounds=2 -Wdate-time -Wendif-labels -Werror=format=2 -Werror=format-signedness -Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=missing-declarations -Werror=missing-prototypes -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=strict-flex-arrays -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wunused-function -Wwrite-strings -Wzero-length-bounds -fdiagnostics-show-option -fno-common -fstack-protector -fstack-protector-strong -fstrict-flex-arrays=3 --param=ssp-buffer-size=4 -Wno-unused-result -Werror=shadow -fPIC -fno-strict-aliasing -fstrict-flex-arrays=1 -fvisibility=hidden -fno-omit-frame-pointer -include config.h -pthread -fvisibility=default -MD -MQ src/shared/libsystemd-shared-258.a.p/openssl-util.c.o -MF src/shared/libsystemd-shared-258.a.p/openssl-util.c.o.d -o src/shared/libsystemd-shared-258.a.p/openssl-util.c.o -c ../src/shared/openssl-util.c ../src/shared/openssl-util.c: In function ‘openssl_ask_password_ui_read’: ../src/shared/openssl-util.c:1395:65: error: implicit declaration of function ‘UI_method_get_ex_data’; did you mean ‘UI_method_get_reader’? [-Wimplicit-function-declaration] 1395 | AskPasswordRequest *req = (AskPasswordRequest*) UI_method_get_ex_data(UI_get_method(ui), 0); | ^~~~~~~~~~~~~~~~~~~~~ | UI_method_get_reader ../src/shared/openssl-util.c:1395:65: warning: nested extern declaration of ‘UI_method_get_ex_data’ [-Wnested-externs] ../src/shared/openssl-util.c:1395:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1395 | AskPasswordRequest *req = (AskPasswordRequest*) UI_method_get_ex_data(UI_get_method(ui), 0); | ^ ../src/shared/openssl-util.c: In function ‘openssl_ask_password_ui_new’: ../src/shared/openssl-util.c:1479:13: error: implicit declaration of function ‘UI_method_set_ex_data’; did you mean ‘UI_method_set_reader’? [-Wimplicit-function-declaration] 1479 | if (UI_method_set_ex_data(ui->method, 0, &ui->request) == 0) | ^~~~~~~~~~~~~~~~~~~~~ | UI_method_set_reader ../src/shared/openssl-util.c:1479:13: warning: nested extern declaration of ‘UI_method_set_ex_data’ [-Wnested-externs] [480/2561] Compiling C object src/shared/libsystemd-shared-258.a.p/pkcs11-util.c.o ninja: build stopped: subcommand failed. ```
* mkosi: Use build/ as extra search path by defaultDaan De Meyer2024-12-201-0/+7
| | | | | | | | Building systemd with mkosi generally requires a very recent version of systemd which might not be installed on the host. Let's configure mkosi to look for extra executables in the build/ directory by default so that we prefer systemd executables from the build directory over those on the host as those on the host are likely to be too old.
* mkosi: Enable EPEL for CentOS Stream tools treeDaan De Meyer2024-12-201-0/+7
| | | | | | | | We need packages from EPEL to be able to build CentOS Stream images with a CentOS Stream tools tree so enable it. This is broken on CentOS Stream 10 but given using a CentOS Stream tools tree is broken without EPEL as well, we might as well enable it and just wait until the packages are added to EPEL 10.
* mkosi: Add libz1 to opensuse tools treeDaan De Meyer2024-12-201-0/+1
| | | | Without meson fails to configure properly.
* mkosi: Add gdb to tools treeDaan De Meyer2024-12-201-0/+1
|
* mkosi: Fix tools image package nameMichal Koutný2024-12-181-1/+1
|
* mkosi: fix section for WithNetwork=Luca Boccassi2024-12-141-1/+1
| | | | /tmp/autopkgtest.L6NPL0/build.doZ/src/mkosi.conf.d/10-debian-ubuntu/mkosi.conf.d/network.conf: Setting WithNetwork should be configured in [Build], not [Content]
* mkosi: use inetutils package instead of hostname for ArchlinuxLuca Boccassi2024-12-114-0/+4
| | | | | | In Arch the hostname binary is in a different package Follow-up for cf48bde7aea52b18ac3fa218d3f60fd3d533ef66
* mkosi: install util-linux-script in F42 tooLuca Boccassi2024-12-051-1/+2
|
* ci: Implement coverage on top of mkosiDaan De Meyer2024-12-052-0/+4
|
* mkosi: install correct package for mypyMatteo Croce2024-11-295-1/+4
| | | | | Package "mypy" doesn't exist on all distro, install the correct package depending on the distro.
* mkosi: Simplify sanitizer setupDaan De Meyer2024-11-291-25/+0
| | | | | Let's get rid of 20-sanitizers.conf and just move it into mkosi.sanitizers instead.
* mkosi: Add github CLI to toolsDaan De Meyer2024-11-244-0/+4
|
* mkosi: Add shellcheck to toolsDaan De Meyer2024-11-244-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