]> git.ipfire.org Git - thirdparty/dracut-ng.git/log
thirdparty/dracut-ng.git
9 months agotest(MULTINIC): avoid /usr/bin/env in server initrd
Benjamin Drung [Mon, 18 Nov 2024 12:39:38 +0000 (13:39 +0100)] 
test(MULTINIC): avoid /usr/bin/env in server initrd

The MULTINIC test fails to start the server on Ubuntu:

```
/usr/bin/env: 'bash': No such file or directory
[    8.026059] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
```

This is caused by missing `/usr/bin/env` in the server initrd. So just
rely on bash being present in the initrd.

Fixes: 4f0a784186e5 ("chore(tests): search for bash in $PATH to improve portability")
9 months agotest: fail test if server has terminated
Benjamin Drung [Mon, 18 Nov 2024 20:50:03 +0000 (21:50 +0100)] 
test: fail test if server has terminated

The server might shutdown on error. When waiting for the server to
startup, check if the server QEMU process has vanished and abort the
test in that case.

9 months agotest: introduce wait_for_server_startup
Benjamin Drung [Mon, 18 Nov 2024 20:39:28 +0000 (21:39 +0100)] 
test: introduce wait_for_server_startup

The code for the server startup is duplicated in multiple test cases. So
introduce a helper function to reduce code duplication.

9 months agoci: remove unnecessary workarounds
Jo Zzsi [Sun, 17 Nov 2024 17:24:02 +0000 (12:24 -0500)] 
ci: remove unnecessary workarounds

9 months agoci: do not log how sysroot is constructed
Jo Zzsi [Sun, 17 Nov 2024 14:49:47 +0000 (09:49 -0500)] 
ci: do not log how sysroot is constructed

It is confusing to see dracut invoked 3 times for each use-case for
the uninitiated. Only log for the dracut invocation that is under test.

9 months agoci(alpine): add util-linux-login for sulogin
Jo Zzsi [Sun, 17 Nov 2024 14:32:02 +0000 (09:32 -0500)] 
ci(alpine): add util-linux-login for sulogin

This is required to test emergency shell.

9 months agotest(STORAGE): add subtests for rd.auto=0
Jo Zzsi [Sun, 17 Nov 2024 12:49:56 +0000 (07:49 -0500)] 
test(STORAGE): add subtests for rd.auto=0

Now TEST 22 is a subtest of this test and can be removed.

9 months agotest(STORAGE): add subtests for degraded RAID
Jo Zzsi [Sat, 16 Nov 2024 20:20:04 +0000 (15:20 -0500)] 
test(STORAGE): add subtests for degraded RAID

Switch to RAID-1 from RAID-0 to be able to degrade the RAID.

9 months agotest(STORAGE): add test for LVM-THIN
Jo Zzsi [Sat, 16 Nov 2024 15:01:01 +0000 (10:01 -0500)] 
test(STORAGE): add test for LVM-THIN

Now TEST 25 is a subtest of this test and can be removed.

9 months agotest(STORAGE): add subtest for encrypted root on LVM
Jo Zzsi [Thu, 14 Nov 2024 22:48:19 +0000 (17:48 -0500)] 
test(STORAGE): add subtest for encrypted root on LVM

Now TEST 21 is a subtest of this test and can be removed.

9 months agotest: include debug module in server only when debugging
Benjamin Drung [Fri, 15 Nov 2024 22:26:29 +0000 (23:26 +0100)] 
test: include debug module in server only when debugging

Including the `debug` module in the server's dracut image is not needed
for the normal test case run. Only include it when the user sets
`SERVER_DEBUG` to debug the test case.

9 months agoci: address yamllint warnings and errors
Benjamin Drung [Fri, 15 Nov 2024 23:32:33 +0000 (00:32 +0100)] 
ci: address yamllint warnings and errors

Address all warnings and errors from yamllint except some of the
line-length warnings:

```
yamllint -d "{extends: default, rules: {line-length: {max: 203}}}"  .
```

9 months agochore: add missing document start to all YAML files
Benjamin Drung [Fri, 15 Nov 2024 21:44:41 +0000 (22:44 +0100)] 
chore: add missing document start to all YAML files

yamllint warns about missing document start "---".

9 months agoci(debian): use zstd as compression
Benjamin Drung [Fri, 15 Nov 2024 22:34:56 +0000 (23:34 +0100)] 
ci(debian): use zstd as compression

Ubuntu recommends zstd as default compressor. So use this compression
in the CI as well.

9 months agotest(FULL-SYSTEMD): make systemd-pcrphase module optional
Benjamin Drung [Fri, 15 Nov 2024 20:42:21 +0000 (21:42 +0100)] 
test(FULL-SYSTEMD): make systemd-pcrphase module optional

TEST-04-FULL-SYSTEMD fails on s390x:

```
dracut[E]: Module 'systemd-pcrphase' cannot be installed.
```

systemd ships `systemd-pcrphase.service` only on amd64, arm64, armhf,
riscv64 on Ubuntu and Debian. So make `systemd-pcrphase` an optional
modules in the test.

Fixes #958

9 months agoci(fedora): add ignition
Jo Zzsi [Fri, 15 Nov 2024 16:38:05 +0000 (11:38 -0500)] 
ci(fedora): add ignition

Ignition is a utility used to manipulate systems during the initramfs.
This includes partitioning disks, formatting partitions, writing files
(regular files, systemd units, etc.), and configuring users. On first
boot, Ignition reads its configuration from a source of truth (remote
URL, network metadata service, hypervisor bridge, etc.) and applies
the configuration.

This is an important out-of tree dracut module that
the upstream project should not regress.

9 months agotest(FULL-SYSTEMD): introduce optional_modules variable
Benjamin Drung [Fri, 15 Nov 2024 14:40:17 +0000 (15:40 +0100)] 
test(FULL-SYSTEMD): introduce optional_modules variable

Unfold the test_dracut call by constructing a optional_modules variable.
This makes the code longer, but easier to read.

9 months agotest(RAID-DEG): workaround of omitting network is no longer needed
Jo Zzsi [Fri, 15 Nov 2024 13:58:24 +0000 (08:58 -0500)] 
test(RAID-DEG): workaround of omitting network is no longer needed

9 months agotest(FULL-SYSTEMD): make some systemd modules optional
Jo Zzsi [Fri, 15 Nov 2024 13:35:29 +0000 (08:35 -0500)] 
test(FULL-SYSTEMD): make some systemd modules optional

This PR will unskip test for Ubuntu on the "PR CI".

9 months agofix(dracut-init): add compatibility with Debian/Ubuntu for libdirs detection
Jo Zzsi [Wed, 13 Nov 2024 11:44:39 +0000 (06:44 -0500)] 
fix(dracut-init): add compatibility with Debian/Ubuntu for libdirs detection

Make sure if /lib/ is included in libdirs when needed.

This change is required for multipath dracut module to work properly
on Debian/Ubuntu based distributions.

9 months agofix(fips-crypto-policies): improve check for module inclusion
Jo Zzsi [Thu, 14 Nov 2024 12:22:47 +0000 (07:22 -0500)] 
fix(fips-crypto-policies): improve check for module inclusion

Checking files under /etc in non-hostonly (generic mode) is
not recommended. Test files under /usr instead.

9 months agotest: replace qemu nic model e1000 by virtio
Benjamin Drung [Fri, 15 Nov 2024 10:59:44 +0000 (11:59 +0100)] 
test: replace qemu nic model e1000 by virtio

TEST-72-NBD fails on s390x with:

```
qemu-system-s390x: warning: hub port hub0port0 has no peer
qemu-system-s390x: warning: hub 0 with no nics
qemu-system-s390x: warning: netdev hub0port0 has no peer
qemu-system-s390x: warning: requested NIC (#net046, model e1000) was not created (not supported by this machine?)
```

The test uses the e1000 model, but s390x does not have it:

```
$ qemu-system-s390x -nic model=help
Available NIC models:
virtio
```

So replace the e1000 model by virtio, which is supported by most
architectures.

Fixes #953

9 months agodocs: warn against the usage of -m, -o, -d
Jo Zzsi [Wed, 13 Nov 2024 15:25:36 +0000 (10:25 -0500)] 
docs: warn against the usage of -m, -o, -d

These are common footguns. We should do a better job
warning the users against these usually untested configurations.

9 months agofix(dracut-functions.sh): check_kernel_module go one dir further up
Nowa Ammerlaan [Thu, 14 Nov 2024 18:03:50 +0000 (19:03 +0100)] 
fix(dracut-functions.sh): check_kernel_module go one dir further up

Since $drivers_dir contains the $kernel as well we have to go up one level more.

9 months agotest(RAID): optionally encrypted LVM PV
Jo Zzsi [Thu, 14 Nov 2024 13:39:21 +0000 (08:39 -0500)] 
test(RAID): optionally encrypted LVM PV

Replace TEST-20 with TEST-24 and remove TEST-24.

9 months agotest(BASIC): enable testing in fips mode
Jo Zzsi [Thu, 14 Nov 2024 11:38:47 +0000 (06:38 -0500)] 
test(BASIC): enable testing in fips mode

This test will enable fips mode on Fedora CI.

9 months agoci(fedora): enable the container to test fips
Jo Zzsi [Wed, 13 Nov 2024 19:50:04 +0000 (14:50 -0500)] 
ci(fedora): enable the container to test fips

9 months agoci: increase GitHub Action timeout to 20 min
Jo Zzsi [Wed, 13 Nov 2024 15:30:48 +0000 (10:30 -0500)] 
ci: increase GitHub Action timeout to 20 min

Sadly, the timeout includes not only the time it takes to
run the test, but also the time it takes to allocate a machine on
GitHub to run the job, which is unpredicatable.

Increase the timeout to account for this new information.

9 months agotest: decrease default VM memory size to 1 GiB
Benjamin Drung [Wed, 13 Nov 2024 11:59:38 +0000 (12:59 +0100)] 
test: decrease default VM memory size to 1 GiB

Commit a0442b777820("test: increase VM memory size to pass test 40 on
more VMs") increased the VM memory from 1 to 2 GiB for TEST-72-NBD,
because the test ran out of memory on Arch and openSUSE.

Running the tests on armhf fails with:

```
qemu-system-armhf: at most 2047 MB RAM can be simulated
```

Decrease the default memory back to 1 GiB. Dracut should work on systems
and VMs with not much memory.

9 months agoci: combine Debian/Ubuntu into the same dockerfile
Jo Zzsi [Sun, 3 Nov 2024 12:29:40 +0000 (07:29 -0500)] 
ci: combine Debian/Ubuntu into the same dockerfile

This PR does not change the test covergae or the number of CI
containers. It simply combines the dockerfile to easy maitenance
and remove duplicated code.

9 months agochore: resolve remaining shellcheck for SC2155
Benjamin Drung [Wed, 13 Nov 2024 00:33:17 +0000 (01:33 +0100)] 
chore: resolve remaining shellcheck for SC2155

9 months agochore: remove unnecessary shellcheck disable for SC2031
Laszlo Gombos [Sat, 25 Feb 2023 00:55:08 +0000 (00:55 +0000)] 
chore: remove unnecessary shellcheck disable for SC2031

9 months agochore: remove unnecessary shellcheck disable for SC2030
Laszlo Gombos [Sat, 25 Feb 2023 00:53:43 +0000 (00:53 +0000)] 
chore: remove unnecessary shellcheck disable for SC2030

9 months agochore: remove unnecessary shellcheck disable for SC1004
Laszlo Gombos [Sat, 25 Feb 2023 00:40:21 +0000 (00:40 +0000)] 
chore: remove unnecessary shellcheck disable for SC1004

9 months agochore: resolve shellcheck for SC3037
Laszlo Gombos [Sat, 25 Feb 2023 00:36:28 +0000 (00:36 +0000)] 
chore: resolve shellcheck for SC3037

9 months agochore: resolve shellcheck for SC2155
Laszlo Gombos [Sat, 25 Feb 2023 00:28:44 +0000 (00:28 +0000)] 
chore: resolve shellcheck for SC2155

9 months agochore: resolve shellcheck for SC2153
Laszlo Gombos [Sat, 25 Feb 2023 00:24:20 +0000 (00:24 +0000)] 
chore: resolve shellcheck for SC2153

9 months agochore: resolve shellcheck for SC2219
Laszlo Gombos [Sat, 25 Feb 2023 00:02:18 +0000 (00:02 +0000)] 
chore: resolve shellcheck for SC2219

9 months agochore: resolve shellcheck for SC2116
Laszlo Gombos [Fri, 24 Feb 2023 22:24:23 +0000 (22:24 +0000)] 
chore: resolve shellcheck for SC2116

9 months agotest(RAID): add support for mdadm in addition to btrfs/zfs
Jo Zzsi [Tue, 12 Nov 2024 22:28:16 +0000 (17:28 -0500)] 
test(RAID): add support for mdadm in addition to btrfs/zfs

9 months agochore(deps): bump softprops/action-gh-release from 2.0.9 to 2.1.0
dependabot[bot] [Tue, 12 Nov 2024 20:46:56 +0000 (20:46 +0000)] 
chore(deps): bump softprops/action-gh-release from 2.0.9 to 2.1.0

Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.0.9 to 2.1.0.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v2.0.9...v2.1.0)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
9 months agofeat(dmsquash-live): add support for rd.live.overlay.nouserconfirmprompt
George Mileka [Thu, 25 Jan 2024 23:06:13 +0000 (15:06 -0800)] 
feat(dmsquash-live): add support for rd.live.overlay.nouserconfirmprompt

Dracut allows the creation of a LiveOS using a read-only squashfs and
a read-write overlay on top.

If the read-write overlay is backed by a ramdisk, Dracut halts and prompts
the user to confirm whether to continue or not.

This interaction during the boot process is not desired in all cases.

This change introduces a new flag (rd.live.overlay.nouserconfirmprompt)
that when defined, it suppresses the prompt and allows the boot process
to continue to completion without user interation.

There is no impact to existing configurations and their associated behavior.
The new behavior only takes effect only when the new switch is explicitly
defined by the image build as a kernel parameter.

9 months agotest(FULL-SYSTEMD): skip test on debian:stable for now
Jo Zzsi [Tue, 12 Nov 2024 17:40:33 +0000 (12:40 -0500)] 
test(FULL-SYSTEMD): skip test on debian:stable for now

This should make the Daily Integration test to finally fully green.

9 months agotest(RAID): add support for zfs RAID in addition to btrfs RAID
Jo Zzsi [Tue, 12 Nov 2024 13:27:26 +0000 (08:27 -0500)] 
test(RAID): add support for zfs RAID in addition to btrfs RAID

Switch to RAID 0 to speed up test and simplify it.

9 months agoci: switch from musl:openrc to glibc:openrc
Jo Zzsi [Tue, 12 Nov 2024 12:08:12 +0000 (07:08 -0500)] 
ci: switch from musl:openrc to glibc:openrc

The goal is to test some common non-systemd configuration.
glibc:openrc is probably a better option for this goal, and
GitHub Action (node) fails to run tests on the Gentoo based musl container.

9 months agoci: use the corect new gentoo container label
Jo Zzsi [Tue, 12 Nov 2024 03:25:43 +0000 (22:25 -0500)] 
ci: use the corect new gentoo container label

9 months agochore: use command instead of type consistently
Jo Zzsi [Mon, 11 Nov 2024 13:32:25 +0000 (08:32 -0500)] 
chore: use command instead of type consistently

9 months agoci: bring back musl/openrc option for Gentoo
Jo Zzsi [Sun, 10 Nov 2024 18:53:01 +0000 (13:53 -0500)] 
ci: bring back musl/openrc option for Gentoo

9 months agotest(BTRFSRAID): make the test more reliable
Jo Zzsi [Sun, 10 Nov 2024 13:54:10 +0000 (08:54 -0500)] 
test(BTRFSRAID): make the test more reliable

Currently the test sometimes fails with the following error message:

Dependency failed for systemd-fsck…m Check on /dev/disk/by-label/root.

9 months agofix: check if xx-lib.sh is needed before executing
Jo Zzsi [Sun, 10 Nov 2024 13:31:03 +0000 (08:31 -0500)] 
fix: check if xx-lib.sh is needed before executing

9 months agofix(dracut): rework timeout for devices added via --mount and --add-device
Antonio Alvarez Feijoo [Mon, 4 Nov 2024 12:31:13 +0000 (13:31 +0100)] 
fix(dracut): rework timeout for devices added via --mount and --add-device

Currently, dracut adds a systemd dropin that sets an infinite timeout _only_ for
the underlying persistent devices of each host device that must be active in the
initrd. E.g.:

```
localhost:~ # dracut -f --stdlog 3 --install "/mnt" --mount "/dev/sda1 /mnt btrfs rw,relatime"
localhost:~ # lsinitrd | grep timeout.conf
-rw-r--r--   2 root     root            0 Oct 28 14:21 etc/systemd/system/dev-disk-by\x2duuid-0d1b24c2\x2df112\x2d48ef\x2d8442\x2d1001cffc92f0.device.d/timeout.conf
localhost:~ # ls -l /dev/disk/by-uuid/0d1b24c2-f112-48ef-8442-1001cffc92f0
lrwxrwxrwx 1 root root 10 Oct 28 11:43 /dev/disk/by-uuid/0d1b24c2-f112-48ef-8442-1001cffc92f0 -> ../../sda1
```

It can be verified in the emergency shell:

```
sh-5.2# systemctl show --property JobRunningTimeoutUSec /dev/disk/by-uuid/0d1b24c2-f112-48ef-8442-1001cffc92f0
JobRunningTimeoutUSec=infinity
sh-5.2# systemctl show --property JobRunningTimeoutUSec /dev/sda1
JobRunningTimeoutUSec=1min 30s
```

This can cause a problem if a user application expects to mount /dev/sda1 in the
initrd (that's why it was explicitly added `--mount "/dev/sda1 ..."`), but for
some reason the link is not created within 1min 30s.

9 months agotest: fix typo
Jo Zzsi [Sun, 10 Nov 2024 13:15:49 +0000 (08:15 -0500)] 
test: fix typo

9 months agotest(IMSM): remove unused file
Jo Zzsi [Sun, 10 Nov 2024 12:06:18 +0000 (07:06 -0500)] 
test(IMSM): remove unused file

9 months agotest(BTRFSRAID): remove unused code
Jo Zzsi [Sun, 10 Nov 2024 12:18:33 +0000 (07:18 -0500)] 
test(BTRFSRAID): remove unused code

9 months agoci: add gentoo:slim to Daily Integration Tests
Jo Zzsi [Sun, 10 Nov 2024 12:10:56 +0000 (07:10 -0500)] 
ci: add gentoo:slim to Daily Integration Tests

9 months agofix: check if dracut-lib.sh is needed before executing
Jo Zzsi [Sun, 10 Nov 2024 11:44:39 +0000 (06:44 -0500)] 
fix: check if dracut-lib.sh is needed before executing

9 months agotest: improve precondition checking
Jo Zzsi [Sun, 10 Nov 2024 11:34:24 +0000 (06:34 -0500)] 
test: improve precondition checking

These changes allow gentoo:slim CI container to not fail.

9 months agoci: add gentoo:slim
Jo Zzsi [Sun, 10 Nov 2024 01:52:17 +0000 (20:52 -0500)] 
ci: add gentoo:slim

9 months agotest(FULL-SYSTEMD): fail if mkinitcpio installs more services that dracut
Jo Zzsi [Sun, 10 Nov 2024 00:14:51 +0000 (19:14 -0500)] 
test(FULL-SYSTEMD): fail if mkinitcpio installs more services that dracut

9 months agofix: add bash dependency when bash scripts are used in the module
Jo Zzsi [Sat, 9 Nov 2024 23:21:24 +0000 (18:21 -0500)] 
fix: add bash dependency when bash scripts are used in the module

The following dracut modules are impacted:
 - systemd-networkd
 - plymouth
 - zipl

9 months agofix(dracut-systemd): check systemd-cryptsetup before including
Jo Zzsi [Sat, 9 Nov 2024 19:06:57 +0000 (14:06 -0500)] 
fix(dracut-systemd): check systemd-cryptsetup before including

9 months agodocs: remove obsolete sysrot paragraph
Jo Zzsi [Sat, 9 Nov 2024 01:08:53 +0000 (20:08 -0500)] 
docs: remove obsolete sysrot paragraph

9 months agoci(Gentoo): enable testing systemd-bsod dracut module
Jo Zzsi [Sat, 9 Nov 2024 20:13:01 +0000 (15:13 -0500)] 
ci(Gentoo): enable testing systemd-bsod dracut module

9 months agofeat: systemd-battery-check dracut module
Jo Zzsi [Sat, 9 Nov 2024 20:30:05 +0000 (15:30 -0500)] 
feat: systemd-battery-check dracut module

9 months agoci(gentoo): optimize container
Jo Zzsi [Sat, 9 Nov 2024 11:07:16 +0000 (06:07 -0500)] 
ci(gentoo): optimize container

Combine some container layers.
Allows to opt-out of optional packages.
Splitting the package installation into two bigger layers allows
the container runtime to download them in parallel.

9 months agotest: make the install dracut the default to run tests
Jo Zzsi [Sat, 9 Nov 2024 20:19:04 +0000 (15:19 -0500)] 
test: make the install dracut the default to run tests

After the --local flag is removed, using the local copy of dracut.sh
for running tests is no longer possible, so change the default.

9 months agotest(FULL-SYSTEMD): add test coverage for mkinitcpio
Jo Zzsi [Sat, 9 Nov 2024 14:20:54 +0000 (09:20 -0500)] 
test(FULL-SYSTEMD): add test coverage for mkinitcpio

Print systemd units included in initrd from mkinitcpio but not from dracut.

9 months agofeat(configure): allow dracut-cpio to be disabled
Mike Gilbert [Sat, 9 Nov 2024 16:13:03 +0000 (11:13 -0500)] 
feat(configure): allow dracut-cpio to be disabled

Just because cargo is installed, doesn't mean we want to use it.

9 months agoci: attempt to re-enable test 60, stop running systemd tests on openSUSE
Jo Zzsi [Sat, 9 Nov 2024 10:08:11 +0000 (05:08 -0500)] 
ci: attempt to re-enable test 60, stop running systemd tests on openSUSE

9 months agofix: initqueue -> /sbin/initqueue
Jo Zzsi [Sat, 9 Nov 2024 10:24:13 +0000 (05:24 -0500)] 
fix: initqueue -> /sbin/initqueue

Use full path for initqueue.

9 months agofix(plymouth): silence warnings
Jo Zzsi [Sat, 9 Nov 2024 12:00:43 +0000 (07:00 -0500)] 
fix(plymouth): silence warnings

As seen on Arch.

9 months agotest(SYSTEMD-INITRD): demonstrate how to not re-compress kernel modules
Jo Zzsi [Sat, 9 Nov 2024 12:14:51 +0000 (07:14 -0500)] 
test(SYSTEMD-INITRD): demonstrate how to not re-compress kernel modules

9 months agoci: fix doc workflow
Jo Zzsi [Sat, 9 Nov 2024 03:12:37 +0000 (22:12 -0500)] 
ci: fix doc workflow

10 months agoperf(hwdb): only include when another module requires it in hostonly
Jo Zzsi [Fri, 25 Oct 2024 13:10:05 +0000 (09:10 -0400)] 
perf(hwdb): only include when another module requires it in hostonly

10 months agotest: make test.sh more convinent to use by adding wildcard support
Jo Zzsi [Fri, 8 Nov 2024 23:41:31 +0000 (18:41 -0500)] 
test: make test.sh more convinent to use by adding wildcard support

10 months agoci: add test 82 to integration-extra
Jo Zzsi [Sat, 9 Nov 2024 00:23:29 +0000 (19:23 -0500)] 
ci: add test 82 to integration-extra

10 months agoci(alpine): remove duplicated packages installed by the dracut package
Jo Zzsi [Thu, 7 Nov 2024 02:30:43 +0000 (21:30 -0500)] 
ci(alpine): remove duplicated packages installed by the dracut package

10 months agofix(dracut-functions.sh): check for modules in --kmoddir, not in --sysroot
Nowa Ammerlaan [Fri, 8 Nov 2024 19:01:54 +0000 (20:01 +0100)] 
fix(dracut-functions.sh): check for modules in --kmoddir, not in --sysroot

Modules are installed from the directory specified by --kmoddir, but currently
the check_kernel_module() function is checking for the module in
--sysroot/lib/modules. This is notably not the same when kernels packages are
being built inside some docker container. We should check for the modules
existence in the directory we are actually going to install it from.

10 months agofix(Makefile): remove irrelevant testcases
Jo Zzsi [Fri, 8 Nov 2024 20:01:58 +0000 (15:01 -0500)] 
fix(Makefile): remove irrelevant testcases

10 months agofix(dracut.sh): do not add cmdline for force_drivers if --kernel-only
Jo Zzsi [Sat, 2 Nov 2024 15:37:29 +0000 (11:37 -0400)] 
fix(dracut.sh): do not add cmdline for force_drivers if --kernel-only

From https://github.com/openSUSE/dracut/pull/384/commits/4e681447f64236422606af7f4ca2877e727c0294

10 months agotest(RAID): remove some negative failme tests that do not add value
Jo Zzsi [Fri, 8 Nov 2024 17:37:09 +0000 (12:37 -0500)] 
test(RAID): remove some negative failme tests that do not add value

10 months agofeat(Makefile): roll cleaninstall target into the install target
Jo Zzsi [Fri, 8 Nov 2024 17:14:35 +0000 (12:14 -0500)] 
feat(Makefile): roll cleaninstall target into the install target

Now that cleaninstall is well tested by the CI, lets roll it into
the regulal install step to help with packaging.

10 months agotest: vi is not required to run test automation
Jo Zzsi [Fri, 8 Nov 2024 16:51:28 +0000 (11:51 -0500)] 
test: vi is not required to run test automation

10 months agoci: move debian extended tests to extra to do less work on each PR
Jo Zzsi [Fri, 8 Nov 2024 16:48:33 +0000 (11:48 -0500)] 
ci: move debian extended tests to extra to do less work on each PR

Prefer testing on Ubuntu on each PR over Debian and delegate
testing on Debian to Integration Tests (Extra) - that runs
scheduled instead of each PR.

10 months agotest: local mode is no longer needed used by the testsuite
Jo Zzsi [Thu, 7 Nov 2024 23:12:11 +0000 (18:12 -0500)] 
test: local mode is no longer needed used by the testsuite

10 months agofix(lsinitrd): improve KERNEL_VERSION detection
Jo Zzsi [Mon, 21 Oct 2024 12:18:44 +0000 (08:18 -0400)] 
fix(lsinitrd): improve KERNEL_VERSION detection

10 months agoci: run make install for networking tests as well
Jo Zzsi [Fri, 8 Nov 2024 14:01:09 +0000 (09:01 -0500)] 
ci: run make install for networking tests as well

10 months agoci: factor out doc into its own workflow
Jo Zzsi [Fri, 8 Nov 2024 12:36:12 +0000 (07:36 -0500)] 
ci: factor out doc into its own workflow

This allows to only run it if files under man directory changed.

10 months agoci: on fedora container test 60 fails
Jo Zzsi [Fri, 8 Nov 2024 11:59:02 +0000 (06:59 -0500)] 
ci: on fedora container test 60 fails

10 months agoci(fedora): remove nss-softokn workaround and install kdump-utils
Jo Zzsi [Thu, 7 Nov 2024 22:53:30 +0000 (17:53 -0500)] 
ci(fedora): remove nss-softokn workaround and install kdump-utils

This setup is closer what users actually use and will allow to
test more dracut modules.

10 months agoci: workaround centos failures for a green CI
Jo Zzsi [Thu, 7 Nov 2024 20:49:39 +0000 (15:49 -0500)] 
ci: workaround centos failures for a green CI

10 months agotest: make the size of all test drives 512 MB
Jo Zzsi [Thu, 7 Nov 2024 12:39:58 +0000 (07:39 -0500)] 
test: make the size of all test drives 512 MB

The goal is to remove these magical size numbers and reduce
cognitive load.

10 months agoci: trigger integration-extra Action when integration-extra.yml changed
Jo Zzsi [Thu, 7 Nov 2024 12:58:02 +0000 (07:58 -0500)] 
ci: trigger integration-extra Action when integration-extra.yml changed

This allows triggering a run on a PR on demand.

10 months agotest: improve precondition checking for test to pass
Jo Zzsi [Thu, 7 Nov 2024 02:06:20 +0000 (21:06 -0500)] 
test: improve precondition checking for test to pass

Tested using a minimal alpine container.

10 months agoci: fix alpine container and install musl-dev package
Jo Zzsi [Wed, 6 Nov 2024 20:50:46 +0000 (15:50 -0500)] 
ci: fix alpine container and install musl-dev package

10 months agoci: install gcc into alpine container
Jo Zzsi [Wed, 6 Nov 2024 19:56:53 +0000 (14:56 -0500)] 
ci: install gcc into alpine container

follow-up fix to 6162c37

10 months agochore(base): remove some unused functions
Jo Zzsi [Wed, 6 Nov 2024 12:09:03 +0000 (07:09 -0500)] 
chore(base): remove some unused functions

10 months agoci: test clang with void instead of alpine
Jo Zzsi [Wed, 6 Nov 2024 17:46:58 +0000 (12:46 -0500)] 
ci: test clang with void instead of alpine

Now that alpine is less tested, let's use void instead for clang.

10 months agoci(alpine): only run BASIC test on each PR
Jo Zzsi [Wed, 6 Nov 2024 13:20:07 +0000 (08:20 -0500)] 
ci(alpine): only run BASIC test on each PR

Also installed dracut-test alpine package to pull in dependencies
from downstream packaging.

Separate packages based on what is needed to pass BASIC test vs
other tests to make it easier to reason abotu why packages are
listed here.

10 months agoci: make sure downstream dracut package is installed in ci containers
Jo Zzsi [Wed, 6 Nov 2024 02:05:08 +0000 (21:05 -0500)] 
ci: make sure downstream dracut package is installed in ci containers

The CI test suite now able to handle and pick up dowstream
dracut configuration.

All other CI containers have dracut installed - except Arch and Gentoo.