| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
These fail for unknown reasons on Ubuntu. Until someone from Ubuntu
who cares can figure out why, let's skip these tests on Ubuntu.
|
|
|
|
| |
The timeout is reliably hit when running tests in mkosi.
|
| |
|
|
|
|
|
|
|
|
| |
On Debian/Ubuntu, the unit is named tgt.service instead of tgtd.service,
so let's make sure we take that into account.
On CentOS, tgtd.service is not available, so let's skip the test if we
can't find the service.
|
|
|
|
|
| |
Otherwise we try to do the check before the udev queue is empty which
will make it fail.
|
|
|
|
|
| |
The debian cloud kernel does not support ahci, so let's use
virtio-scsi-pci everywhere instead.
|
| |
|
|
|
|
|
| |
Most of these are identical, let's just generate from a meson
template.
|
|
|
|
|
|
|
| |
Let's remove the unneeded NotifyAccess=all and start the socket
and service in the test itself instead of via the service unit. This
makes the test unit identical to the other test units which will allow
us to autogenerate it in a later commit.
|
|
|
|
|
| |
Let's ship a .autorelabel file so we can get rid of
firstboot-autorelabel.service.
|
|
|
|
|
|
|
| |
Having these named differently than the test itself mostly creates
unecessary confusion and makes writing logic against the tests harder
so let's rename the testsuite-xx units and scripts to just use the
test name itself.
|
|
|
|
|
|
|
|
| |
Currently, on soft-reboot, /run/credentials/@system is unmounted
because it has DefaultDependencies=yes and as such will have
Conflicts=umount.target and Before=umount.target. Let's make sure
credential mounts survive soft-reboot by implying DefaultDependencies=no
for credential mounts.
|
|
|
|
|
|
|
| |
The state might be "freezing-by-parent" as well so let's take that
into account.
Fixes #32746
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A fixed name is too rigid, let's give users the ability to define
custom drop-in names which at the same time also allows defining
multiple dropins per unit.
We use ~ as the separator because:
- ':' is not allowed in credential names
- '=' is used to separate credential from value in mkosi's --credential
argument.
- '-' is commonly used in filenames
- '@' already has meaning as the unit template specifier which might be
confusing when adding dropins for template units
|
|
|
|
|
|
|
|
| |
Otherwise, at this stage, the interface may be in e.g. initialized or
pending state, and the drop-in file introduced by the previous command
may not be registered to the state file for the interface.
Fixes #32685.
|
|
|
|
|
|
|
| |
This can change between the call to homectl inspect and userdbctl
user so let's ignore it along with the other disk fields.
Fixes #32727
|
|
|
|
|
|
|
|
| |
We already changed logs-filtering.service to sleep 2 seconds before
exiting to combat flakyness, let's do the same for the delegated
cgroup filtering payload.
Fixes #32696 (hopefully)
|
|
|
|
|
|
| |
Otherwise we might fail if PID 1 is currently accessing these files.
Fixes #32692 (hopefully)
|
|
|
|
|
|
|
|
| |
Let's run mkfs on the file we create instead of the loop device and
let's use udevadm wait --settle to wait for udev to settle before
doing anything with the loop device
Fixes #32680 (hopefully)
|
|
|
|
|
|
|
|
| |
Currently test-aux-scope.service can get killed by the test before
it's had a chance to setup its signal handler. Make it Type=notify
to fix the race.
Fixes #32670 (hopefully)
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
Other filesystems do not support online shrinking.
|
|
|
|
| |
opensuse does not have the stress tool packaged.
|
|
|
|
|
| |
When running test images built with read-only /usr
a swap partition is likely so needs to be turned off first.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
The test unit has RemainAfterExit=yes so let's schedule our own
shutdown from the test itself once we finish running.
|
|
|
|
|
| |
loop0 and 1 can be used by systemd-repart and vanish
but we can guarantee that $LODEV was allocated and is available.
|
|
|
|
|
| |
Otherwise /dev/loop0p1 might not exist when calling
systemd-cryptsetup attach.
|
|
|
|
|
| |
Let's make sure the TPM is available before running the test as the
test makes use of it.
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
systemd-networkd might already be running, let's make sure we restart
it if it is already running.
|
|
|
|
|
| |
This allows the logic to install the configuration to be done inside
the test itself which allows it to be shared with mkosi.
|
| |
|
|\
| |
| | |
Add TEST-06-SELINUX to mkosi integration tests
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Other distributions may be able to install selinux
but they are not expected to use it.
The distribution is tested rather than whether selinux is enabled
because it is expected to work on CentOS and Fedora
and we want it to fail noisily.
|
|/
|
|
|
| |
As the former is deprecated and might not be available (i.e. on Ubuntu
Noble it's only available after installing the tzdata-legacy package).
|
|
|
|
|
|
| |
Fixes test failure
Follow-up for 03e3b2672bb6c242c445ee8c02ae7d23dbfcf87d
|
|
|
|
|
|
| |
TEST-26-SYSTEMCTL is racy as we call systemctl is-active immediately
after systemctl kill. Let's implement --wait for systemctl kill and
use it in TEST-26-SYSTEMCTL to avoid the race.
|
|
|
|
|
| |
/usr is not erofs anymore in the mkosi images so let's drop the
workaround where we mount a writable tmpfs on top of /usr.
|
|
|
|
|
|
|
| |
This reverts commit dcb17e3295dfce1a9a9f4fb648c4750c05d3c46d.
importctl is now correctly installed on opensuse, so no need for
this workaround anymore.
|