]> git.ipfire.org Git - thirdparty/dracut-ng.git/log
thirdparty/dracut-ng.git
15 months agotest: reorganize tests
Jo Zzsi [Fri, 11 Oct 2024 13:13:41 +0000 (09:13 -0400)] 
test: reorganize tests

10-19: core modules
20-29: multiple boot drives
30-39: live boot
40-49: systemd
60-69: basic networking (nfs)
70-79: advanced networking (iscsi, nbd)
80-89: dracut binaries

old -> new
----------
01 -> 10
02 -> 40
03 -> 11
04 -> 41
05 -> 42
10 -> 20
11 -> 21
12 -> 22
13 -> 25
14 -> 23
15 -> 24
16 -> 30
17 -> 25
18 -> 12
20 -> 60
30 -> 70
35 -> 71
40 -> 72
50 -> 61
60 -> 62
62 -> 81
63 -> 82
98 -> 80

15 months agoci: remove sudo from all test containers
Jo Zzsi [Sun, 13 Oct 2024 21:26:56 +0000 (17:26 -0400)] 
ci: remove sudo from all test containers

15 months agodocs: update NEWS.md and AUTHORS for release 105 105
dracutng[bot] [Sun, 13 Oct 2024 00:23:58 +0000 (00:23 +0000)] 
docs: update NEWS.md and AUTHORS for release 105

15 months agofix(systemd-cryptsetup): change the ordering for consistency
Jo Zzsi [Sat, 12 Oct 2024 14:38:41 +0000 (10:38 -0400)] 
fix(systemd-cryptsetup): change the ordering for consistency

All other systemd modules are numbered as 01.

15 months agofix(systemd): remove typo from the dracut module name
Jo Zzsi [Sat, 12 Oct 2024 13:52:46 +0000 (09:52 -0400)] 
fix(systemd): remove typo from the dracut module name

Follow-up 5551746088633116a28f3ded9d7003f378b6cd17.

15 months agofix(udev-rules): move relevant rules from systemd
Jo Zzsi [Sat, 12 Oct 2024 03:11:25 +0000 (23:11 -0400)] 
fix(udev-rules): move relevant rules from systemd

Also install elogind into Alpine and Void containers.

15 months agofix(dmsquash-live): checkisomd5 is installed into /usr/bin
Jo Zzsi [Fri, 11 Oct 2024 00:18:58 +0000 (20:18 -0400)] 
fix(dmsquash-live): checkisomd5 is installed into /usr/bin

15 months agofix(man): use US English spelling for initialization
Benjamin Drung [Wed, 9 Oct 2024 12:09:35 +0000 (14:09 +0200)] 
fix(man): use US English spelling for initialization

15 months agofix(man): correct spelling of initramfs
Benjamin Drung [Wed, 9 Oct 2024 11:57:07 +0000 (13:57 +0200)] 
fix(man): correct spelling of initramfs

15 months agodocs: update NEWS.md and AUTHORS for release 104 104
dracutng[bot] [Tue, 8 Oct 2024 13:10:06 +0000 (13:10 +0000)] 
docs: update NEWS.md and AUTHORS for release 104

15 months agofix: install test infrastructure
Jo Zzsi [Sat, 5 Oct 2024 11:49:42 +0000 (07:49 -0400)] 
fix: install test infrastructure

15 months agofix(network): call both check_module and module_check
Jo Zzsi [Fri, 20 Sep 2024 03:10:48 +0000 (23:10 -0400)] 
fix(network): call both check_module and module_check

Add back testing the module with check_module as well as module_check.

Without this PR, on some Linux distributions (e.g. Void) adding `network` meta module
no longer works as it tries and fails to install the preferred netowrking backend
(network-manager).

15 months agochore: .asc --> .adoc in preparation to improve manual generation
Jo Zzsi [Sat, 28 Sep 2024 22:09:44 +0000 (18:09 -0400)] 
chore: .asc --> .adoc in preparation to improve manual generation

Antora seems to require .adoc.

https://asciidoctor.org/docs/asciidoc-recommended-practices/ recommends
.adoc extension.

16 months agoci: remove unused interactive debugging tools
Jo Zzsi [Fri, 20 Sep 2024 01:56:03 +0000 (21:56 -0400)] 
ci: remove unused interactive debugging tools

Remove vi(m), strace, tcpdump, wget, less.

16 months agoci: add swtpm for TPM emulation
Jo Zzsi [Fri, 20 Sep 2024 01:26:38 +0000 (21:26 -0400)] 
ci: add swtpm for TPM emulation

16 months agofix(hwdb): only install /etc/udev/udev.hwdb in hostonly mode
Jo Zzsi [Thu, 19 Sep 2024 14:38:40 +0000 (10:38 -0400)] 
fix(hwdb): only install /etc/udev/udev.hwdb in hostonly mode

"$udevconfdir"/hwdb.bin already grabs /etc/udev/udev.hwdb
in hostonly mode.

16 months agochore: create a dedicated directory for each reference config
Jo Zzsi [Thu, 19 Sep 2024 16:55:40 +0000 (12:55 -0400)] 
chore: create a dedicated directory for each reference config

This change helps with downstream packaging as packaging will no
no longer needs to rename the file.

16 months agotest: move test scripts under test/
Jo Zzsi [Wed, 18 Sep 2024 01:31:55 +0000 (21:31 -0400)] 
test: move test scripts under test/

16 months agotest: move dracut.conf.d conf dir for tests under $TESTDIR
Jo Zzsi [Sun, 15 Sep 2024 22:05:46 +0000 (18:05 -0400)] 
test: move dracut.conf.d conf dir for tests under $TESTDIR

This will ensure that the directory gets cleaned up after test run.

16 months agotest(UEFI): prepare for testing with more than one kernel command line
Jo Zzsi [Sun, 15 Sep 2024 18:44:14 +0000 (14:44 -0400)] 
test(UEFI): prepare for testing with more than one kernel command line

Use SMBIOS Type 11 Strings support in systemd-stub
(io.systemd.stub.kernel-cmdline-extra).

16 months agotest: move test dracut modules under the test/ directory
Jo Zzsi [Sun, 15 Sep 2024 00:49:40 +0000 (20:49 -0400)] 
test: move test dracut modules under the test/ directory

16 months agotest: remove unnecessary intermediate cleanups
Jo Zzsi [Sun, 15 Sep 2024 00:07:34 +0000 (20:07 -0400)] 
test: remove unnecessary intermediate cleanups

16 months agotest: always keep the generated initrd to help writing assertions
Jo Zzsi [Sat, 14 Sep 2024 23:39:46 +0000 (19:39 -0400)] 
test: always keep the generated initrd to help writing assertions

This should also make the tests to run faster.

16 months agotest: move more code out from tests into common test functions
Jo Zzsi [Sat, 14 Sep 2024 14:51:42 +0000 (10:51 -0400)] 
test: move more code out from tests into common test functions

16 months agotest: create a config for test test-makeroot test-root
Jo Zzsi [Thu, 12 Sep 2024 00:58:19 +0000 (20:58 -0400)] 
test: create a config for test test-makeroot test-root

16 months agotest: consolidate TEST_KERNEL_CMDLINE
Jo Zzsi [Wed, 11 Sep 2024 19:44:46 +0000 (15:44 -0400)] 
test: consolidate TEST_KERNEL_CMDLINE

16 months agotest(BASIC): move driver regression testing out to a different test
Jo Zzsi [Wed, 11 Sep 2024 17:48:03 +0000 (13:48 -0400)] 
test(BASIC): move driver regression testing out to a different test

16 months agotest: showmount is not required to run the tests
Jo Zzsi [Wed, 11 Sep 2024 15:35:54 +0000 (11:35 -0400)] 
test: showmount is not required to run the tests

16 months agotest: tcpdump is not required to run the tests
Jo Zzsi [Wed, 11 Sep 2024 15:32:04 +0000 (11:32 -0400)] 
test: tcpdump is not required to run the tests

16 months agotest(MULTINIC): ifcfg dracut module is no longer available
Jo Zzsi [Wed, 11 Sep 2024 01:34:28 +0000 (21:34 -0400)] 
test(MULTINIC): ifcfg dracut module is no longer available

16 months agotest: remove dracut-lib.sh dependency from real rootfs
Jo Zzsi [Tue, 10 Sep 2024 02:42:07 +0000 (22:42 -0400)] 
test: remove dracut-lib.sh dependency from real rootfs

16 months agotest: remove less from the required binaries for tests
Jo Zzsi [Tue, 10 Sep 2024 02:08:09 +0000 (22:08 -0400)] 
test: remove less from the required binaries for tests

16 months agoci: do not force rootfstype, let the initrd figure it out
Jo Zzsi [Tue, 10 Sep 2024 00:46:48 +0000 (20:46 -0400)] 
ci: do not force rootfstype, let the initrd figure it out

remove 'rw' from kernel command line as that is the default

16 months agoci: set rd.retry consistently by only setting it in one place
Jo Zzsi [Tue, 10 Sep 2024 00:36:23 +0000 (20:36 -0400)] 
ci: set rd.retry consistently by only setting it in one place

16 months agochore(tests): search for bash in $PATH to improve portability
Jo Zzsi [Tue, 10 Sep 2024 00:24:37 +0000 (20:24 -0400)] 
chore(tests): search for bash in $PATH to improve portability

16 months agotest(UEFI): use ukify if available
Jo Zzsi [Sun, 8 Sep 2024 14:03:14 +0000 (10:03 -0400)] 
test(UEFI): use ukify if available

Create test coverage for using dracut with ukify.

16 months agofeat(rescue): move command line arguments to 50-rescue.conf
Jo Zzsi [Fri, 13 Sep 2024 16:45:23 +0000 (12:45 -0400)] 
feat(rescue): move command line arguments to 50-rescue.conf

The benefit of this change is that even if kernel-install
is not used (e.g. direct user invocation), the correct
kernel command line options will be set for the generated
rescue image.

16 months agofix(rescue): make rescue always no-hostonly
Jo Zzsi [Wed, 21 Aug 2024 23:20:43 +0000 (19:20 -0400)] 
fix(rescue): make rescue always no-hostonly

Currently the rescue image is only set to no-hostonly if it is
generated via dracut-rescue.install. Make the rescue image
generation more predictable and consistent by setting no-hostonly
right in the rescue config.

16 months agodocs: clarify --print-cmdline
Jo Zzsi [Fri, 13 Sep 2024 13:01:08 +0000 (09:01 -0400)] 
docs: clarify --print-cmdline

16 months agoperf(systemd-initrd): do not depend on base module
Jo Zzsi [Wed, 18 Sep 2024 02:20:07 +0000 (22:20 -0400)] 
perf(systemd-initrd): do not depend on base module

Make sure /etc/initrd exist.

Test SYSTEMD-INITRD confirms no regression as this tests
now no longer includes the base module and it still passes
the boot tests with systemd (hence the perf tag).

16 months agochore(deps): bump luizm/action-sh-checker from 0.8.0 to 0.9.0
dependabot[bot] [Tue, 17 Sep 2024 20:55:13 +0000 (20:55 +0000)] 
chore(deps): bump luizm/action-sh-checker from 0.8.0 to 0.9.0

Bumps [luizm/action-sh-checker](https://github.com/luizm/action-sh-checker) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/luizm/action-sh-checker/releases)
- [Commits](https://github.com/luizm/action-sh-checker/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: luizm/action-sh-checker
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
16 months agochore: remove logtree
Jo Zzsi [Sun, 25 Aug 2024 14:20:00 +0000 (10:20 -0400)] 
chore: remove logtree

logtree was introduced for testing Fedora on Travis CI.
After the transition to GitHub Action logtree is no longer used.

16 months agofix(dracut): --list-modules should imply --no-kernel as well
Jo Zzsi [Fri, 13 Sep 2024 12:50:05 +0000 (08:50 -0400)] 
fix(dracut): --list-modules should imply --no-kernel as well

This will ensure that 'dracut --list-modules' works well in a container.

16 months agotest(UEFI): add test coverage for 50-uki-virt.conf
Jo Zzsi [Fri, 13 Sep 2024 15:28:27 +0000 (11:28 -0400)] 
test(UEFI): add test coverage for 50-uki-virt.conf

16 months agofeat: config example for cloud provider uki vm
Jo Zzsi [Fri, 13 Sep 2024 12:22:42 +0000 (08:22 -0400)] 
feat: config example for cloud provider uki vm

This is an example configuration for a 'unified kernel image'.

The key benefit of a unified kernel is that its secure boot
signature covers the initrd and cmdline contents, allowing
a trustworthy measured boot process with attestation, which
is not practical with locally generated initrds/cmdlines.

The initrd in this example only needs a very small set of
block driver modules present, in order to be usable across
KVM, Hyper-V and Xen hypervisors which will cover essentially
all common public and private clouds.

16 months agofix(dracut): don't apply aggressive strip to kernel modules
Kairui Song [Fri, 13 Sep 2024 09:12:43 +0000 (17:12 +0800)] 
fix(dracut): don't apply aggressive strip to kernel modules

Unlike ordinary binaries, kernel module will be unusable if stripped
with "-p". Fix this by always use "-g" only.

So far it didn't cause many issues since most kernels have their
modules signed or compressed so this is skipped.

Signed-off-by: Kairui Song <kasong@tencent.com>
16 months agodocs: document more creation functions for dracut modules
Antonio Alvarez Feijoo [Thu, 12 Sep 2024 08:26:18 +0000 (10:26 +0200)] 
docs: document more creation functions for dracut modules

16 months agofix: typo in variable name
Jo Zzsi [Wed, 11 Sep 2024 20:57:13 +0000 (16:57 -0400)] 
fix: typo in variable name

16 months agorefactor(dracut-install): simplify open() call in cp()
Marcos Mello [Wed, 11 Sep 2024 01:38:06 +0000 (22:38 -0300)] 
refactor(dracut-install): simplify open() call in cp()

Flipping `S_IFMT` gives the file mode bits.

16 months agotest: continue to force network-legacy for server when needed
Jo Zzsi [Wed, 11 Sep 2024 13:25:37 +0000 (09:25 -0400)] 
test: continue to force network-legacy for server when needed

This change allows us to address the remaining test issues one by one.

16 months agofeat(dracut.sh): add --add-confdir option
Lichen Liu [Wed, 7 Aug 2024 02:13:37 +0000 (10:13 +0800)] 
feat(dracut.sh): add --add-confdir option

When generating kdump's initrd, we want to keep [omit_]dracutmodules
empty and let kdump to handle the modules. And we don't want to
affect the first kernel's initrd, so we cannot place our conf file
to /etc/dracut.conf.d or /usr/lib/dracut/dracut.conf.d.

This patch adds a new option to allow user to add an extra configuration
directory to use *.conf files from. If the dir not exists, will look for
confdir's subdir.

After that, kdump can use "--add-confdir kdump" if
/usr/lib/dracut/dracut.conf.d/kdump exists, to apply its own dracut conf.

See also:
https://github.com/rhkdump/kdump-utils/issues/11
https://github.com/rhkdump/kdump-utils/pull/31

Suggested-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Lichen Liu <lichliu@redhat.com>
16 months agoperf(systemd-initrd): initrd.target is already the default
Jo Zzsi [Mon, 9 Sep 2024 13:32:14 +0000 (09:32 -0400)] 
perf(systemd-initrd): initrd.target is already the default

Avoid creating an extra symlink under /etc inside the
generated initrd.

initrd.target is already the default.

16 months agofeat(fips): add support for UKIs
Vitaly Kuznetsov [Fri, 9 Aug 2024 10:49:05 +0000 (12:49 +0200)] 
feat(fips): add support for UKIs

Kernel integrity check in FIPS module is incompatible with UKIs as neither
/boot/vmlinuz-`uname-r` nor /boot/.vmlinuz-`uname-r`.hmac are present. UKI
is placed to $ESP\EFI\Linux\<install-tag>-<uname-r>.efi and if a .hmac file
is present next to it, it is possible to do similar check.

Note, UKIs have a 'one size fits all' command line and 'boot=' is not expected
to be set. Luckily, if the UKI is systemd-stub based then we can expect
'LoaderDevicePartUUID' variable containing PARTUUID of the ESP to be set. Mount
it to /boot using the existing logic.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
16 months agofix(nvmf): install (only) required nvmf modules
Martin Wilck [Mon, 9 Sep 2024 07:43:01 +0000 (09:43 +0200)] 
fix(nvmf): install (only) required nvmf modules

nvme_rdma was not installed, even if it was required, whereas
nvme_tcp was installed in non-TCP setups. nvme_fabrics will be
pulled in automatically by any transport module and doesn't
need to be installed explicitly.

Fix it.

16 months agofix(nvmf): require NVMeoF modules
Martin Wilck [Fri, 6 Sep 2024 11:36:41 +0000 (13:36 +0200)] 
fix(nvmf): require NVMeoF modules

Signed-off-by: Martin Wilck <mwilck@suse.com>
16 months agofeat(systemd): always install libsystemd libraries
Antonio Alvarez Feijoo [Tue, 10 Sep 2024 13:51:46 +0000 (15:51 +0200)] 
feat(systemd): always install libsystemd libraries

16 months agofix(dracut): do not add all lib subdirs to `LD_LIBRARY_PATH` with `--sysroot`
Mike Schwarz [Tue, 10 Sep 2024 13:51:04 +0000 (15:51 +0200)] 
fix(dracut): do not add all lib subdirs to `LD_LIBRARY_PATH` with `--sysroot`

On systems with too many library subdirectories, the current approach causes
`Argument list too long` errors, and the initrd also fails to build.

This patch does not fix the original issue by itself (i.e., libsystemd libs not
found), so all the dracut modules that require libraries stored in
subdirectories must explicitly install them using `inst_libdir_file`, which
already successfully handles the `--sysroot` prefix.

Fixes e0b876823d9c608db7132cab9e5edd62543a27ae

Co-authored-by: Antonio Alvarez Feijoo <antonio.feijoo@suse.com>
16 months agofix(dracut-install): use correct data type for pid
Marcos Mello [Tue, 10 Sep 2024 19:58:15 +0000 (16:58 -0300)] 
fix(dracut-install): use correct data type for pid

16 months agotest: continue to force network-legacy for server when needed
Jo Zzsi [Mon, 2 Sep 2024 18:41:27 +0000 (14:41 -0400)] 
test: continue to force network-legacy for server when needed

This change allows us to address the remaining test issues one by one.

16 months agorevert(test): network dracut package needs to be added with '-a'
Jo Zzsi [Mon, 2 Sep 2024 17:46:39 +0000 (13:46 -0400)] 
revert(test): network dracut package needs to be added with '-a'

reverts 7445b72a7e6e2435d5af39d26e61c960612f4c85

16 months agofix(network): handle '-m network'
Jo Zzsi [Mon, 2 Sep 2024 17:33:59 +0000 (13:33 -0400)] 
fix(network): handle '-m network'

call module_check instead of check_module

16 months agoci: run tests in verbose mode for Ubuntu
Jo Zzsi [Tue, 10 Sep 2024 01:21:13 +0000 (21:21 -0400)] 
ci: run tests in verbose mode for Ubuntu

Ubuntu is the most active supporting verbose test configuration and
running tests in V=2 mode downstream.

16 months agoci: remove mksh as there is no longer a dracut module supporting it
Jo Zzsi [Tue, 10 Sep 2024 01:19:59 +0000 (21:19 -0400)] 
ci: remove mksh as there is no longer a dracut module supporting it

16 months agoci: install mkosi into a few containers to be able to use it for tests
Jo Zzsi [Tue, 10 Sep 2024 01:18:19 +0000 (21:18 -0400)] 
ci: install mkosi into a few containers to be able to use it for tests

mkosi-initrd is a portable way to create a reference initrd and compare
it to the output of dracut generated initrd.

16 months agoci: make container file names and tag names consistent
Jo Zzsi [Sun, 8 Sep 2024 15:32:35 +0000 (11:32 -0400)] 
ci: make container file names and tag names consistent

16 months agoci: python3-pefile is a dependency for ukify
Jo Zzsi [Sun, 8 Sep 2024 15:13:19 +0000 (11:13 -0400)] 
ci: python3-pefile is a dependency for ukify

16 months agotest(SYSTEMD-INITRD): demonstrate minimal initrd passing test
Jo Zzsi [Mon, 2 Sep 2024 16:12:35 +0000 (12:12 -0400)] 
test(SYSTEMD-INITRD): demonstrate minimal initrd passing test

16 months agofix(systemd-udevd): make systemd-sysctl, systemd-modules-load optional
Jo Zzsi [Mon, 2 Sep 2024 14:07:55 +0000 (10:07 -0400)] 
fix(systemd-udevd): make systemd-sysctl, systemd-modules-load optional

16 months agofix(systemd-sysctl): systemd-modules-load is not a dependency
Jo Zzsi [Mon, 2 Sep 2024 14:01:06 +0000 (10:01 -0400)] 
fix(systemd-sysctl): systemd-modules-load is not a dependency

After= in systemd-sysctl.service does not imply dependency
on systemd-modules-load.

16 months agoci(alpine): use clang instead of gcc for more test coverage
Jo Zzsi [Sat, 7 Sep 2024 23:57:00 +0000 (19:57 -0400)] 
ci(alpine): use clang instead of gcc for more test coverage

16 months agochore(dracut-install): fix clang build
Jo Zzsi [Sat, 7 Sep 2024 18:43:11 +0000 (14:43 -0400)] 
chore(dracut-install): fix clang build

Fix the following build error:

dracut-install.c: unused parameter 'ctx' [-Werror,-Wunused-parameter]

16 months agofix(dracut-install): handle correctly sysrootdir with trailing '/'
Ondrej Kubik [Fri, 26 Jul 2024 20:53:59 +0000 (20:53 +0000)] 
fix(dracut-install): handle correctly sysrootdir with trailing '/'

Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
16 months agofix(dracut-install): do not assume handled path starts with sysrootdir
Ondrej Kubik [Fri, 26 Jul 2024 21:40:51 +0000 (21:40 +0000)] 
fix(dracut-install): do not assume handled path starts with sysrootdir

When using --sysrootdir argument, we cannot assume fulldstpath and
fullsrcpath always start with sysrootdir. When dracut_install is
called on destination directory, this results in passing pointer which
is often beyond valid buffer.

Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
16 months agofix(dracut-functions): allow for \ in get_maj_min file path
Pavel Valena [Wed, 7 Aug 2024 23:30:50 +0000 (01:30 +0200)] 
fix(dracut-functions): allow for \ in get_maj_min file path

as the path might be f.e. /dev/disk/by-partlabel/EFI\x20System\x20Partition

which would produce Warning 'grep: warning: stray \ before x' in get_maj_min

Resolves: !505

16 months agofix(fips-crypto-policies): make it depend on fips dracut module
Jo Zzsi [Thu, 5 Sep 2024 13:09:36 +0000 (09:09 -0400)] 
fix(fips-crypto-policies): make it depend on fips dracut module

16 months agofeat(test-root): only include debug module if V is set to 2
Jo Zzsi [Thu, 5 Sep 2024 13:20:14 +0000 (09:20 -0400)] 
feat(test-root): only include debug module if V is set to 2

This PR enables CI to run faster by default (V=1).

When debugging (V=2) debug module will be included as before.

16 months agoci: test plymouth dracut module in more containers
Jo Zzsi [Fri, 6 Sep 2024 15:03:40 +0000 (11:03 -0400)] 
ci: test plymouth dracut module in more containers

16 months agotest(FULL-SYSTEM): remove non-systemd dracut modules from the test
Jo Zzsi [Sat, 31 Aug 2024 19:31:44 +0000 (15:31 -0400)] 
test(FULL-SYSTEM): remove non-systemd dracut modules from the test

i18n is not longer required after 238378ad2b7367900a0050bb9fc5b9eab5294cba.

16 months agoci: change default fstype for Arch and openSUSE
Jo Zzsi [Sat, 7 Sep 2024 03:29:14 +0000 (23:29 -0400)] 
ci: change default fstype for Arch and openSUSE

Default (when test allows it) is now XFS for Arch
and btrfs for openSUSE.

16 months agotest(BASIC): add support for XFS
Jo Zzsi [Sat, 7 Sep 2024 03:15:07 +0000 (23:15 -0400)] 
test(BASIC): add support for XFS

XFS filesystem labels can be at most 12 characters long,
so move the test case for the ' rdinit=/bin/sh' label
to TEST-02 instead and keep TEST-01 simple.

XFS filesystem must be larger than 300MB.

16 months agotest(BASIC): allow to run the test with various fstypes
Jo Zzsi [Sun, 1 Sep 2024 14:51:24 +0000 (10:51 -0400)] 
test(BASIC): allow to run the test with various fstypes

Tested with the following fstypes:
 - ext2
 - ext3
 - ext4
 - btrfs
 - jfs

16 months agoci: add more fstypes support (xfs, jfs, f2fs)
Jo Zzsi [Sun, 1 Sep 2024 15:19:38 +0000 (11:19 -0400)] 
ci: add more fstypes support (xfs, jfs, f2fs)

This PR is just a container change, no tests are added or removed.

16 months agochore: remove boilerplate
Jo Zzsi [Fri, 30 Aug 2024 16:01:19 +0000 (12:01 -0400)] 
chore: remove boilerplate

It is not required to redefine empty functions.

16 months agofix(udev-rules): remove systemd-specific rules
Jo Zzsi [Fri, 30 Aug 2024 21:20:08 +0000 (17:20 -0400)] 
fix(udev-rules): remove systemd-specific rules

These rules are already present in the systemd dracut module.

16 months agotest(NBD): fix how rootfs is built
Jo Zzsi [Fri, 30 Aug 2024 20:03:46 +0000 (16:03 -0400)] 
test(NBD): fix how rootfs is built

Change in systemd dracut module exposed that thest NBD had a dependency
on a particular dracut module rule that is not needed in production.

Change the test and align it with other tests.

16 months agofix(systemd): do not set unused target as the default
Jo Zzsi [Fri, 30 Aug 2024 16:43:30 +0000 (12:43 -0400)] 
fix(systemd): do not set unused target as the default

initrd.target is set as default in systemd-initrd dracut module.

16 months agofix(systemd): /sbin/init is not required inside initrd
Jo Zzsi [Fri, 30 Aug 2024 16:16:32 +0000 (12:16 -0400)] 
fix(systemd): /sbin/init is not required inside initrd

16 months agotest: network dracut package needs to be added with '-a'
Jo Zzsi [Sat, 31 Aug 2024 00:35:43 +0000 (20:35 -0400)] 
test: network dracut package needs to be added with '-a'

'-m network' does not really work as it is not able to include
the actual networking backend as check_module call with
always fail.

16 months agofix(Dockerfile-Gentoo): explicitly pull in all build dependencies
Andrew Ammerlaan [Sat, 31 Aug 2024 13:15:13 +0000 (15:15 +0200)] 
fix(Dockerfile-Gentoo): explicitly pull in all build dependencies

Closes: https://github.com/dracut-ng/dracut-ng/issues/630
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
16 months agotest: document and fix extra verbose mode (V=2)
Jo Zzsi [Sun, 25 Aug 2024 16:28:50 +0000 (12:28 -0400)] 
test: document and fix extra verbose mode (V=2)

Set 'rd.debug' for all tests  in 'V=2' mode to make
it more verbose than 'V=1' test mode.

16 months agofix(systemd-networkd): remove basename dependency
Fabian Henze [Mon, 26 Aug 2024 20:05:35 +0000 (20:05 +0000)] 
fix(systemd-networkd): remove basename dependency

The basename tool was not listed in the requirements and is also not needed.
Also see https://github.com/dracutdevs/dracut/commit/4c216b1db6a86373549e13b60250a7fcf94417b9

16 months agoci: add more packages to Debian and Ubuntu containers
Jo Zzsi [Fri, 30 Aug 2024 00:53:30 +0000 (20:53 -0400)] 
ci: add more packages to Debian and Ubuntu containers

Increase test coverage. Some of the newly added packages
are needed to to install some dracut modules and are already
installed for other CI containers.

16 months agorevert(systemd): trigger systemd-vconsole-setup.service only on demand
Jo Zzsi [Thu, 29 Aug 2024 01:53:33 +0000 (21:53 -0400)] 
revert(systemd): trigger systemd-vconsole-setup.service only on demand

Revert 6b095274fb935ffb7639d1ea7e51f9bd0f487726.

Enable systemd-vconsole-setup.service always when it is avaiable
as it usually gets triggered by udev rules anyways.

16 months agofix(systemd-networkd): make sure default network is always last
Timo Rothenpieler [Wed, 28 Aug 2024 18:45:48 +0000 (20:45 +0200)] 
fix(systemd-networkd): make sure default network is always last

Fixes #618

16 months agochore: remove obsolete old syntax for rd.driver.* and rd.live
Jo Zzsi [Mon, 26 Aug 2024 20:19:11 +0000 (16:19 -0400)] 
chore: remove obsolete old syntax for rd.driver.* and rd.live

Remove support for the following arguments:
- rdblacklist
- rdinsmodpost
- rdloaddriver
- check
- rdlivedebug
- live_dir
- liveimg
- overlay
- readonly_overlay
- reset_overlay
- live_ram

16 months agochore: rd.ccw is deprecated
Jo Zzsi [Mon, 26 Aug 2024 20:06:31 +0000 (16:06 -0400)] 
chore: rd.ccw is deprecated

16 months agochore: rdinitdebug, rdnetdebug, rdinfo, rd_retry and rdshell are deprecated
Jo Zzsi [Mon, 26 Aug 2024 20:03:41 +0000 (16:03 -0400)] 
chore: rdinitdebug, rdnetdebug, rdinfo, rd_retry and rdshell are deprecated

16 months agochore: rdbreak is deprecated
Jo Zzsi [Mon, 26 Aug 2024 19:57:33 +0000 (15:57 -0400)] 
chore: rdbreak is deprecated

16 months agochore: rd_NO_*TAB rd_NO_LVM* are deprecated
Jo Zzsi [Mon, 26 Aug 2024 19:45:55 +0000 (15:45 -0400)] 
chore: rd_NO_*TAB rd_NO_LVM* are deprecated

16 months agochore: rd_LVM_LV and rd_LVM_VG are deprecated
Jo Zzsi [Mon, 26 Aug 2024 19:41:19 +0000 (15:41 -0400)] 
chore: rd_LVM_LV and rd_LVM_VG are deprecated