]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
5 weeks agotest-bpf-foreign-programs: pass the right error variable
David Tardon [Tue, 7 May 2024 11:43:09 +0000 (13:43 +0200)] 
test-bpf-foreign-programs: pass the right error variable

5 weeks agotest-bpf-restrict-fs: pass the right error variable
David Tardon [Tue, 7 May 2024 11:42:29 +0000 (13:42 +0200)] 
test-bpf-restrict-fs: pass the right error variable

5 weeks agotest-socket-bind: pass the right error variable
David Tardon [Tue, 7 May 2024 11:41:30 +0000 (13:41 +0200)] 
test-socket-bind: pass the right error variable

5 weeks agonspawn: pass the right error variable
David Tardon [Tue, 7 May 2024 11:40:53 +0000 (13:40 +0200)] 
nspawn: pass the right error variable

5 weeks agouserns-restrict: pass the right error variable
David Tardon [Tue, 7 May 2024 11:35:55 +0000 (13:35 +0200)] 
userns-restrict: pass the right error variable

5 weeks agocgroup-show: pass the right error variable
David Tardon [Tue, 7 May 2024 11:30:37 +0000 (13:30 +0200)] 
cgroup-show: pass the right error variable

5 weeks agomanager: pass the right error variable
David Tardon [Tue, 7 May 2024 11:29:30 +0000 (13:29 +0200)] 
manager: pass the right error variable

5 weeks agoresolved-dns-stream: pass the right error variable
David Tardon [Tue, 7 May 2024 11:23:01 +0000 (13:23 +0200)] 
resolved-dns-stream: pass the right error variable

5 weeks agoexec-invoke: pass the right error variable
David Tardon [Tue, 7 May 2024 11:19:42 +0000 (13:19 +0200)] 
exec-invoke: pass the right error variable

5 weeks agomain: pass the right error variable
David Tardon [Tue, 7 May 2024 11:18:10 +0000 (13:18 +0200)] 
main: pass the right error variable

5 weeks agobless-boot: pass the right error variable
David Tardon [Tue, 7 May 2024 11:16:30 +0000 (13:16 +0200)] 
bless-boot: pass the right error variable

5 weeks agojournal-remote-main: pass the right error variable
David Tardon [Tue, 7 May 2024 11:13:24 +0000 (13:13 +0200)] 
journal-remote-main: pass the right error variable

5 weeks agodiscover-image: pass the right error variable
David Tardon [Tue, 7 May 2024 07:07:54 +0000 (09:07 +0200)] 
discover-image: pass the right error variable

5 weeks agobuild(deps): bump pkg/debian from `50b20e2` to `7cc898c`
dependabot[bot] [Tue, 7 May 2024 09:56:09 +0000 (09:56 +0000)] 
build(deps): bump pkg/debian from `50b20e2` to `7cc898c`

Bumps pkg/debian from `50b20e2` to `7cc898c`.

---
updated-dependencies:
- dependency-name: pkg/debian
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
5 weeks agomkosi: Switch to fedora 40
Daan De Meyer [Tue, 7 May 2024 07:33:10 +0000 (09:33 +0200)] 
mkosi: Switch to fedora 40

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.

5 weeks agocryptsetup: make type-specific checks for PKCS#11 private keys
Vladimir Stoiakin [Sun, 18 Feb 2024 17:40:09 +0000 (20:40 +0300)] 
cryptsetup: make type-specific checks for PKCS#11 private keys

5 weeks agoMerge pull request #32677 from keszybz/wording-fixes
Luca Boccassi [Tue, 7 May 2024 09:03:44 +0000 (11:03 +0200)] 
Merge pull request #32677 from keszybz/wording-fixes

Wording fixes

5 weeks agodocs: minor improvements to CREDENTIALS.md
Adrian Wannenmacher [Mon, 6 May 2024 18:53:02 +0000 (20:53 +0200)] 
docs: minor improvements to CREDENTIALS.md

This commit fixes two instances of a miscount. As the number is not important in either case, and seemingly subject to changes, it was removed entirely.

Another sentence was reworded to improve readability.

5 weeks agoMerge pull request #32635 from poettering/cryptenroll-no-pcrlock-conflict
Luca Boccassi [Tue, 7 May 2024 07:49:30 +0000 (09:49 +0200)] 
Merge pull request #32635 from poettering/cryptenroll-no-pcrlock-conflict

cryptenroll: don't try to use pcrlock in combination with signed PCR policy if both are available, because we don't actually support that right now

5 weeks agomanager: resolve verb/noun mixup in log message 32677/head
Zbigniew Jędrzejewski-Szmek [Wed, 24 Apr 2024 12:49:12 +0000 (14:49 +0200)] 
manager: resolve verb/noun mixup in log message

The word is used in "%s requested" so it should be a noun.

5 weeks agorepart: respect `SOURCE_DATE_EPOCH` on `mkdir_p_root`
Moritz Sanft [Mon, 29 Apr 2024 11:03:40 +0000 (13:03 +0200)] 
repart: respect `SOURCE_DATE_EPOCH` on `mkdir_p_root`

This let's systemd-repart respect the `SOURCE_DATE_EPOCH` environment
variable when creating directories in the local tree through `CopyFiles`
or `MakeDirectories`.

To do this, we pass a timestamp `ts` to `mkdir_p_root`, which it will
use to fix up `mtime` and `atime` of the directory it creates as
well as the `mtime` of the directory it creates the other directory *in*,
as the `mtime` of the latter is modified when creating a directory in it.

For the same reason, it also needs to fixup the `mtime` of the upper
directory when copying a file into it through `CopyFiles`.

If `SOURCE_DATE_EPOCH`, times are left as is. (`UTIME_OMIT`)

5 weeks agoMerge pull request #32673 from DaanDeMeyer/mkosi
Luca Boccassi [Tue, 7 May 2024 07:25:59 +0000 (09:25 +0200)] 
Merge pull request #32673 from DaanDeMeyer/mkosi

Various mkosi fixes

5 weeks agoman: reword text and fix tense in description of sd_event_source_set_io_fd
Zbigniew Jędrzejewski-Szmek [Tue, 23 Apr 2024 17:44:23 +0000 (19:44 +0200)] 
man: reword text and fix tense in description of sd_event_source_set_io_fd

Follow-up for 2fa480592d4f4334881361c5558f563e5ea4c9c3.

5 weeks agohwdb: ieee1394-unit-function: add Tascam IF-FW/DM mkII
Takashi Sakamoto [Mon, 6 May 2024 08:46:00 +0000 (17:46 +0900)] 
hwdb: ieee1394-unit-function: add Tascam IF-FW/DM mkII

Jörg M. Sigle contriutes configuration ROM image for Tascam IF-FW/DM mkII,
which includes a quirk that the values of model fields in both root and
unit directory entries are different. In device attributes, it appears
that the value of model attribute in unit device is different from the one
in node device.

This commit adds hwdb entry for the model.

5 weeks agodoc: mention that units can be masked via credentials
Luca Boccassi [Mon, 6 May 2024 19:09:35 +0000 (20:09 +0100)] 
doc: mention that units can be masked via credentials

5 weeks agoci: Disable RuntimeBuildSources= 32673/head
Daan De Meyer [Mon, 6 May 2024 20:22:50 +0000 (22:22 +0200)] 
ci: Disable RuntimeBuildSources=

We build with debuginfo, so there's no point to starting virtiofsd
to mount the sources and build directory into the VM, so let's
disable that.

5 weeks agomkosi: Install dhcp-server on OpenSUSE
Daan De Meyer [Mon, 6 May 2024 18:20:10 +0000 (20:20 +0200)] 
mkosi: Install dhcp-server on OpenSUSE

Required for systemd-networkd-tests.py.

5 weeks agomeson: Fix formatting
Daan De Meyer [Mon, 6 May 2024 16:16:09 +0000 (18:16 +0200)] 
meson: Fix formatting

5 weeks agomkosi: Install python3-psutil
Daan De Meyer [Mon, 6 May 2024 14:21:53 +0000 (16:21 +0200)] 
mkosi: Install python3-psutil

Required to run systemd-networkd-tests.py. Already a dependency of
systemd-tests on Fedora so we don't add it there as it'll be pulled
in via the prepare script.

5 weeks agomkosi: Install radvd
Daan De Meyer [Mon, 6 May 2024 13:22:46 +0000 (15:22 +0200)] 
mkosi: Install radvd

Required for networkd integration tests.

5 weeks agotpm2-util: tweak JSON condition check 32635/head
Lennart Poettering [Mon, 6 May 2024 14:12:04 +0000 (16:12 +0200)] 
tpm2-util: tweak JSON condition check

As for the other fields let's check if the actual variable we serialize
is set before serializing it.

This shouldn't make any difference, since the pubkey and the PCR mask
should always be set together or neither, but I think it's easier to
grok this way, and makes the function nicely "dumb": it serializes what
is specified, without trying to be smart by suppressng specified fields.

5 weeks agocryptenroll: determine TPM enrollment parmaeters only if we actually do TPM enrollments
Lennart Poettering [Thu, 2 May 2024 16:41:36 +0000 (18:41 +0200)] 
cryptenroll: determine TPM enrollment parmaeters only if we actually do TPM enrollments

Otherwise we'll do work (and possibly generate fatal errors) where we
really shouldn't.

5 weeks agocryptenroll: do not combine pcrlock and signed PCR policies in TPM mode
Lennart Poettering [Thu, 2 May 2024 16:34:36 +0000 (18:34 +0200)] 
cryptenroll: do not combine pcrlock and signed PCR policies in TPM mode

We currently do not support pcrlock policies and signed PCR policies in
combination. Hence, when we auto-discover both, let's disable signed PCR
policies if pcrlock is available too (simple because that covers more
ground).

Fixes: #32565
5 weeks agoMerge pull request #32664 from DaanDeMeyer/no-build
Daan De Meyer [Mon, 6 May 2024 14:01:24 +0000 (16:01 +0200)] 
Merge pull request #32664 from DaanDeMeyer/no-build

mkosi: Skip build if NO_BUILD is set

5 weeks agomkosi: Configure coredump to store coredumps in the journal. 32664/head
Daan De Meyer [Mon, 6 May 2024 12:44:43 +0000 (14:44 +0200)] 
mkosi: Configure coredump to store coredumps in the journal.

Makes it easier to debug coredumps that happen in CI as we can retrieve
them via the journal.

5 weeks agomkosi: Add missing SPDX line
Daan De Meyer [Mon, 6 May 2024 12:44:27 +0000 (14:44 +0200)] 
mkosi: Add missing SPDX line

5 weeks agomkosi: Only look for services in /usr and /etc
Daan De Meyer [Mon, 6 May 2024 12:39:28 +0000 (14:39 +0200)] 
mkosi: Only look for services in /usr and /etc

5 weeks agomkosi: Skip build if NO_BUILD is set
Daan De Meyer [Mon, 6 May 2024 12:11:13 +0000 (14:11 +0200)] 
mkosi: Skip build if NO_BUILD is set

This allows running the integration tests against the distro's packaged
version of systemd.

5 weeks agoMerge pull request #32606 from DaanDeMeyer/mkosi
Daan De Meyer [Mon, 6 May 2024 11:11:43 +0000 (13:11 +0200)] 
Merge pull request #32606 from DaanDeMeyer/mkosi

 mkosi: Enable more integration tests

5 weeks agosystemd-boot: Allow key enroll in AuditMode
Nicolas Bouchinet [Fri, 3 May 2024 09:42:09 +0000 (11:42 +0200)] 
systemd-boot: Allow key enroll in AuditMode

Since AuditMode automatically switches SetupMode on, it should be
authorized to enroll SecureBoot keys.

Signed-off-by: Nicolas Bouchinet <nicolas.bouchinet@ssi.gouv.fr>
5 weeks agomkosi: Enable more integration tests 32606/head
Daan De Meyer [Wed, 1 May 2024 07:37:55 +0000 (09:37 +0200)] 
mkosi: Enable more integration tests

5 weeks agoci: Reduce the number of integration tests we run concurrently
Daan De Meyer [Fri, 3 May 2024 08:57:22 +0000 (10:57 +0200)] 
ci: Reduce the number of integration tests we run concurrently

Since there's a bunch of CPU hungry systemd-journal-remote processes
running on the host to received the forwarded logs, by running as many
test as the VM has cores we overload the available resources. Let's leave
use the number of cores - 1 to reduce resource contention.

5 weeks agotest: Default to linux qemu firmware
Daan De Meyer [Sun, 5 May 2024 16:14:44 +0000 (18:14 +0200)] 
test: Default to linux qemu firmware

Direct kernel boot results in much faster boot times so let's use
it by default.

We disable it for tests that need to reboot because +-50% of the
time, doing a reboot when using direct kernel boot causes qemu to
hang on reboot. Until we figure that out, let's use UEFI for the
tests that need to reboot.

5 weeks agoTEST-46-HOMED: Skip barely fits test on ext4
Daan De Meyer [Mon, 6 May 2024 09:47:34 +0000 (11:47 +0200)] 
TEST-46-HOMED: Skip barely fits test on ext4

For some reason this fails on ext4 with "No space left on device".
Until we figure out why, let's skip the test on ext4 (which is reported
as ext2/ext3 by stat).

5 weeks agoTEST-46-HOMED: Only run resize tests on btrfs
Daan De Meyer [Mon, 6 May 2024 09:46:52 +0000 (11:46 +0200)] 
TEST-46-HOMED: Only run resize tests on btrfs

Other filesystems do not support online shrinking.

5 weeks agoTEST-53-ISSUE-16347: Add rtc configuration for qemu
Daan De Meyer [Sun, 5 May 2024 20:17:38 +0000 (22:17 +0200)] 
TEST-53-ISSUE-16347: Add rtc configuration for qemu

5 weeks agoTEST-55-OOMD: Configure init.scope credential in mkosi image
Daan De Meyer [Sun, 5 May 2024 08:46:01 +0000 (10:46 +0200)] 
TEST-55-OOMD: Configure init.scope credential in mkosi image

5 weeks agoTEST-55-OOMD: Skip on opensuse
Daan De Meyer [Sun, 5 May 2024 08:39:32 +0000 (10:39 +0200)] 
TEST-55-OOMD: Skip on opensuse

opensuse does not have the stress tool packaged.

5 weeks agoTEST-55-OOMD: swapoff before adding new swapfile
Richard Maw [Mon, 19 Feb 2024 17:28:00 +0000 (17:28 +0000)] 
TEST-55-OOMD: swapoff before adding new swapfile

When running test images built with read-only /usr
a swap partition is likely so needs to be turned off first.

5 weeks agoTEST-04-JOURNAL: Skip bsod test if systemd-bsod is not installed
Daan De Meyer [Sun, 5 May 2024 11:58:38 +0000 (13:58 +0200)] 
TEST-04-JOURNAL: Skip bsod test if systemd-bsod is not installed

systemd is built without qrencode support on CentOS which means
systemd-bsod will not be installed. Let's skip the test if that's
the case.

5 weeks agoTEST-04-JOURNAL: Run with persistent journal
Daan De Meyer [Sun, 5 May 2024 09:46:43 +0000 (11:46 +0200)] 
TEST-04-JOURNAL: Run with persistent journal

This test depends on having the journal in /var/log/journal.

5 weeks agoTEST-04-JOURNAL: Make more robust
Daan De Meyer [Sat, 4 May 2024 14:32:57 +0000 (16:32 +0200)] 
TEST-04-JOURNAL: Make more robust

Avoid hitting https://github.com/systemd/systemd/issues/2913 by adding
some more sleeps. This is required to make the test pass when executed
with mkosi on my machine.

5 weeks agoTEST-07-PID1: Schedule exit on successful execution
Daan De Meyer [Sat, 4 May 2024 20:19:22 +0000 (22:19 +0200)] 
TEST-07-PID1: Schedule exit on successful execution

The test unit has RemainAfterExit=yes so let's schedule our own
shutdown from the test itself once we finish running.

5 weeks agoTEST-07-PID1: Test access to allocated loop instead of loop0
Richard Maw [Wed, 17 Apr 2024 12:03:12 +0000 (13:03 +0100)] 
TEST-07-PID1: Test access to allocated loop instead of loop0

loop0 and 1 can be used by systemd-repart and vanish
but we can guarantee that $LODEV was allocated and is available.

5 weeks agoTEST-07-PID1: Lower TriggerLimitIntervalSec= unconditionally
Daan De Meyer [Sat, 4 May 2024 11:22:53 +0000 (13:22 +0200)] 
TEST-07-PID1: Lower TriggerLimitIntervalSec= unconditionally

It shouldn't hurt to do this when KVM is enabled or we're not collecting
coverage so let's just always lower the trigger limit interval.

5 weeks agoTEST-07-PID1: Move mount units to test dir
Richard Maw [Wed, 17 Apr 2024 15:10:09 +0000 (16:10 +0100)] 
TEST-07-PID1: Move mount units to test dir

To load the units it is sufficient to add them to the units directory
and it's a step towards not needing any customisations for this test.

5 weeks agoTEST-70-TPM2: Call udevadm wait after attaching disk image
Daan De Meyer [Fri, 3 May 2024 17:15:11 +0000 (19:15 +0200)] 
TEST-70-TPM2: Call udevadm wait after attaching disk image

Otherwise /dev/loop0p1 might not exist when calling
systemd-cryptsetup attach.

5 weeks agoTEST-70-TPM2: Add dependency on tpm2.target
Daan De Meyer [Fri, 3 May 2024 08:27:23 +0000 (10:27 +0200)] 
TEST-70-TPM2: Add dependency on tpm2.target

Let's make sure the TPM is available before running the test as the
test makes use of it.

5 weeks agoTEST-74-AUX-UTILS: Use persistent journal
Daan De Meyer [Sun, 5 May 2024 09:44:50 +0000 (11:44 +0200)] 
TEST-74-AUX-UTILS: Use persistent journal

This test depends on having the journal in /var/log/journal.

5 weeks agoTEST-74-AUX-UTILS: Drop usage of loop module
Daan De Meyer [Fri, 3 May 2024 13:56:52 +0000 (15:56 +0200)] 
TEST-74-AUX-UTILS: Drop usage of loop module

This module is builtin on ubuntu causing the test to fail. Let's
use just dummy instead. I tried replacing it with scsi_debug but
that caused issues with modprobe complaining it could not remove
scsi_debug because it was in use.

5 weeks agoTEST-74-AUX-UTILS: Skip run0 test if pam snippet is not installed
Daan De Meyer [Fri, 3 May 2024 12:09:27 +0000 (14:09 +0200)] 
TEST-74-AUX-UTILS: Skip run0 test if pam snippet is not installed

5 weeks agoTEST-74-AUX-UTILS: Make sure at least two locales exist
Daan De Meyer [Thu, 2 May 2024 07:16:28 +0000 (09:16 +0200)] 
TEST-74-AUX-UTILS: Make sure at least two locales exist

5 weeks agoTEST-74-AUX-UTILS: Support running on UEFI systems
Richard Maw [Thu, 22 Feb 2024 13:00:00 +0000 (13:00 +0000)] 
TEST-74-AUX-UTILS: Support running on UEFI systems

5 weeks agobuild(deps): bump pkg/debian from `f550017` to `50b20e2`
dependabot[bot] [Mon, 6 May 2024 09:11:28 +0000 (09:11 +0000)] 
build(deps): bump pkg/debian from `f550017` to `50b20e2`

Bumps pkg/debian from `f550017` to `50b20e2`.

---
updated-dependencies:
- dependency-name: pkg/debian
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
5 weeks agoTEST-74-AUX-UTILS: Support systems with pre-existing modules config
Richard Maw [Thu, 22 Feb 2024 13:00:48 +0000 (13:00 +0000)] 
TEST-74-AUX-UTILS: Support systems with pre-existing modules config

5 weeks agoTEST-74-AUX-UTILS: Support credential-provided root SSH public key
Richard Maw [Thu, 22 Feb 2024 13:01:13 +0000 (13:01 +0000)] 
TEST-74-AUX-UTILS: Support credential-provided root SSH public key

When root authorized keys are provided by mkosi they are not
newline-terminated so appending a public key to the file results
in a corrupt key, so just to be safe we add an empty line.

5 weeks agoTEST-75-RESOLVED: Ignore resource record ifindex field
Daan De Meyer [Sat, 4 May 2024 10:20:24 +0000 (12:20 +0200)] 
TEST-75-RESOLVED: Ignore resource record ifindex field

Depending on host configuration this may or may not be included (e.g.
on mkosi we get a result without an ifindex field). Let's strip it from
the resolved reply to avoid failing the test.

5 weeks agoTEST-75-RESOLVED: Add missing sleep after knotc reload
Daan De Meyer [Sat, 4 May 2024 10:19:23 +0000 (12:19 +0200)] 
TEST-75-RESOLVED: Add missing sleep after knotc reload

We already have this workaround for knotc reload a little further
in the test, let's apply it to our first invocation of knotc reload
as well.

5 weeks agoTEST-75-RESOLVED: Restart systemd-networkd
Daan De Meyer [Sat, 4 May 2024 10:18:50 +0000 (12:18 +0200)] 
TEST-75-RESOLVED: Restart systemd-networkd

systemd-networkd might already be running, let's make sure we restart
it if it is already running.

5 weeks agoTEST-75-RESOLVED: Move knot configuration to /usr/lib/systemd/tests/testdata
Daan De Meyer [Wed, 1 May 2024 09:54:17 +0000 (11:54 +0200)] 
TEST-75-RESOLVED: Move knot configuration to /usr/lib/systemd/tests/testdata

This allows the logic to install the configuration to be done inside
the test itself which allows it to be shared with mkosi.

5 weeks agoTEST-21-DFUZZER: Give higher priority
Daan De Meyer [Sun, 5 May 2024 11:29:54 +0000 (13:29 +0200)] 
TEST-21-DFUZZER: Give higher priority

This test takes a long time to run. Let's make sure it is started
first to avoid it being the only test running for a long time at the
end.

5 weeks agoTEST-21-DFUZZER: Bump timeout to 1h
Daan De Meyer [Thu, 2 May 2024 06:48:57 +0000 (08:48 +0200)] 
TEST-21-DFUZZER: Bump timeout to 1h

5 weeks agoTEST-21-DFUZZER: Skip test if dfuzzer is not installed
Richard Maw [Fri, 5 Apr 2024 16:38:18 +0000 (17:38 +0100)] 
TEST-21-DFUZZER: Skip test if dfuzzer is not installed

5 weeks agotest: Fix udev storage test name
Daan De Meyer [Sun, 5 May 2024 20:00:29 +0000 (22:00 +0200)] 
test: Fix udev storage test name

5 weeks agotest: Add missing TEST-69-SHUTDOWN to list
Daan De Meyer [Sun, 5 May 2024 19:59:01 +0000 (21:59 +0200)] 
test: Add missing TEST-69-SHUTDOWN to list

5 weeks agotest: Remove flaky test comments
Daan De Meyer [Sun, 5 May 2024 19:32:49 +0000 (21:32 +0200)] 
test: Remove flaky test comments

These two tests don't seem to fail in CI, so let's remove the comments
about flakyness.

5 weeks agotest: Always shutdown on test success in mkosi
Daan De Meyer [Sun, 5 May 2024 09:38:09 +0000 (11:38 +0200)] 
test: Always shutdown on test success in mkosi

When we want to get an interactive shell in a test that fails because
of a race condition, we might need to run the test a few times with
--repeat before it fails. However, currently, when -i is used, the VM
needs to be shut down manually each time before the next run can start.

Let's always shut down the VM if the test succeeds so that --repeat can
be used with -i to run the test until it fails and then get an interactive
shell in the VM.

5 weeks agotest: Use MESON_TEST_ITERATION if available
Daan De Meyer [Fri, 3 May 2024 08:57:50 +0000 (10:57 +0200)] 
test: Use MESON_TEST_ITERATION if available

This allows running the same test multiple times concurrently with
meson's --repeat option. Proposed upstream but not yet merged:
https://github.com/mesonbuild/meson/pull/13177.

5 weeks agotest: Pass through test matching environment variables to the mkosi VM
Daan De Meyer [Fri, 3 May 2024 08:27:58 +0000 (10:27 +0200)] 
test: Pass through test matching environment variables to the mkosi VM

5 weeks agotest: Only set environment variable if integration tests are enabled.
Daan De Meyer [Thu, 2 May 2024 18:21:29 +0000 (20:21 +0200)] 
test: Only set environment variable if integration tests are enabled.

If we set it to '0' if integration tests are not enabled then we can't
enable them from the command line since environment from meson takes
priority over environment variables from the command line.

We also rename the related variables to avoid conflicts with the
existing integration_tests variable.

5 weeks agomkosi: Add dependency to system image on minimal-base
Daan De Meyer [Sun, 5 May 2024 20:22:03 +0000 (22:22 +0200)] 
mkosi: Add dependency to system image on minimal-base

The output is included as an extra tree so it should be a dependency,
even if it is pulled in transitively via minimal-0 and minimal-1
already.

5 weeks agomkosi: Install dbus policy required by TEST-23-UNIT-FILE
Daan De Meyer [Sun, 5 May 2024 19:19:26 +0000 (21:19 +0200)] 
mkosi: Install dbus policy required by TEST-23-UNIT-FILE

Co-authored-by: Richard Maw <richard.maw@codethink.co.uk>
5 weeks agomkosi: Remove /etc/default/keyboard if it exists
Daan De Meyer [Sun, 5 May 2024 18:46:59 +0000 (20:46 +0200)] 
mkosi: Remove /etc/default/keyboard if it exists

Required to make TEST-73-LOCALE pass on Ubuntu.

5 weeks agomkosi: Make sure tmp.mount is not messed with on Debian/Ubuntu
Daan De Meyer [Sun, 5 May 2024 13:03:37 +0000 (15:03 +0200)] 
mkosi: Make sure tmp.mount is not messed with on Debian/Ubuntu

We want /tmp to be a tmpfs so let's hack the debian packaging to
make sure that's the case until the debian packaging is fixed to
make /tmp a tmpfs for UPSTREAM=1 builds.

5 weeks agomkosi: Install stress
Daan De Meyer [Sun, 5 May 2024 08:25:12 +0000 (10:25 +0200)] 
mkosi: Install stress

Required for TEST-55-OOMD. Not available on opensuse.

5 weeks agomkosi: Install veritysetup
Daan De Meyer [Sat, 4 May 2024 10:46:11 +0000 (12:46 +0200)] 
mkosi: Install veritysetup

Only missing on CentOS/Fedora/OpenSUSE as in Arch/Debian/Ubuntu it's
part of the cryptsetup package which we already install.

Required for TEST-58-REPART.

5 weeks agomkosi: Install dig
Daan De Meyer [Sat, 4 May 2024 10:18:31 +0000 (12:18 +0200)] 
mkosi: Install dig

Required for TEST-75-RESOLVED

5 weeks agomkosi: Install knot
Daan De Meyer [Sat, 4 May 2024 10:18:10 +0000 (12:18 +0200)] 
mkosi: Install knot

Required for TEST-75-RESOLVED

5 weeks agomkosi: Use /etc/nsswitch.conf from repo in mkosi image
Daan De Meyer [Fri, 3 May 2024 10:57:29 +0000 (12:57 +0200)] 
mkosi: Use /etc/nsswitch.conf from repo in mkosi image

5 weeks agomkosi: Disable ext4's orphan_file feature for centos images
Daan De Meyer [Fri, 3 May 2024 10:56:50 +0000 (12:56 +0200)] 
mkosi: Disable ext4's orphan_file feature for centos images

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.

5 weeks agomkosi: Enable udev debug logging in CI
Daan De Meyer [Thu, 2 May 2024 14:38:31 +0000 (16:38 +0200)] 
mkosi: Enable udev debug logging in CI

It's very useful to debug race conditions with loop devices, so let's
enable the logging now that it goes to the journal and not to the
console.

5 weeks agomkosi: Move sbsigntools to CentOS/Fedora shared configuration
Daan De Meyer [Wed, 1 May 2024 07:37:09 +0000 (09:37 +0200)] 
mkosi: Move sbsigntools to CentOS/Fedora shared configuration

sbsigntools was added to EPEL 9.

5 weeks agomkosi: Drop glibc-langpack-en from Fedora specific packages
Daan De Meyer [Wed, 1 May 2024 07:36:17 +0000 (09:36 +0200)] 
mkosi: Drop glibc-langpack-en from Fedora specific packages

It's already added in the CentOS/Fedora shared configuration.

5 weeks agomkosi: Install dfuzzer on CentOS/Fedora images
Daan De Meyer [Wed, 1 May 2024 07:35:28 +0000 (09:35 +0200)] 
mkosi: Install dfuzzer on CentOS/Fedora images

Required for TEST-21-DFUZZER.

5 weeks agomkosi: Insist on KVM, VSOCK and TPM by default
Daan De Meyer [Fri, 3 May 2024 12:15:55 +0000 (14:15 +0200)] 
mkosi: Insist on KVM, VSOCK and TPM by default

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.

5 weeks agomkosi: Update to latest
Daan De Meyer [Fri, 3 May 2024 12:13:39 +0000 (14:13 +0200)] 
mkosi: Update to latest

5 weeks agotest: Formatting fixes
Daan De Meyer [Thu, 2 May 2024 06:52:50 +0000 (08:52 +0200)] 
test: Formatting fixes

5 weeks agoman: Remove OSConfig project mentioning for systemd-confext
Kai Lueke [Mon, 6 May 2024 04:06:51 +0000 (13:06 +0900)] 
man: Remove OSConfig project mentioning for systemd-confext

The systemd-confext use case description was mentioning an OSConfig
project which won't say much to users. Also, it's good to call out that
systemd-confext provides a reliable way to manage configuration because
in contrast to other tools it will remove all old configuration files.

5 weeks agohwdb: Add mapping for Xiaomi Mipad 2 bottom bezel capacitive buttons
Hans de Goede [Sun, 5 May 2024 17:40:12 +0000 (19:40 +0200)] 
hwdb: Add mapping for Xiaomi Mipad 2 bottom bezel capacitive buttons

The Xiaomi Mipad2 tablet has 3 capacitive buttons at the bottom.
These 3 buttons are handled by the touchsceen (the touchscreen extends
downwards to cover the bottom bezel).

By default these send Windows specific shortcuts which do not work
with Linux desktop environments:

Menu: LeftMeta + S
Home: LeftCtrl + Esc
Back: Backspace

Map these to menu / leftmeta (Windows key / Win 8 tablet home button key) /
back.

5 weeks agomeson: Add missing spdx line
Daan De Meyer [Sun, 5 May 2024 08:39:22 +0000 (10:39 +0200)] 
meson: Add missing spdx line