diff --git a/features/mdadm/tests/ts0001-guess-ignore-multipath/expect b/features/mdadm/tests/ts0001-guess-ignore-multipath/expect new file mode 100644 index 00000000..0e1e0e5a --- /dev/null +++ b/features/mdadm/tests/ts0001-guess-ignore-multipath/expect @@ -0,0 +1,30 @@ +mi-bug-report: WARNING: There are no modules in the directory: /lib/modules/6.6.41-un-def-alt0.p11.1/kernel +RUN: guess/root/action +TRACE function: source=features/mdadm/guess/device: main guess_variable: MDADM_EXTRA_PROGS mdmon +TRACE function: source=features/mdadm/guess/device: main guess_modalias: md-raid0 +TRACE function: source=features/mdadm/guess/device: main guess_modalias: efivarfs +TRACE function: source=features/mdadm/guess/device: main guess_feature: mdadm +TRACE function: source=features/mdadm/guess/device: main guess_variable: GENERATE_UDEV_RULES_FOR_MD_DEVICE 9:126 +TRACE function: source=features/devmapper/guess/device: main guess_feature: devmapper +TRACE function: source=features/rootfs/guess/fstype: main guess_modalias: fs-ext4 +RUN: guess-config +GENERATE_UDEV_RULES_FOR_MD_DEVICE = \ + 9:126 +MDADM_EXTRA_PROGS = \ + mdmon +MOUNTPOINTS = \ + / + +MODULES_ADD += \ + efivarfs fs-ext4 md-raid0 \ + pci:v00002646d00005017sv00002646sd00005017bc01sc08i02 \ + pci:v00002646d0000501Dsv00002646sd0000501Dbc01sc08i02 \ + pci:v00008086d0000464Dsv00000000sd00000000bc06sc04i00 \ + pci:v00008086d0000467Fsv00008086sd00000000bc01sc04i00 \ + pci:v00008086d00007AC4sv00000000sd00000000bc06sc04i00 \ + pci:v00008086d00007AC8sv00000000sd00000000bc06sc04i00 + +FEATURES += \ + add-modules add-udev-rules devmapper mdadm rootfs + +rc=0 diff --git a/features/mdadm/tests/ts0001-guess-ignore-multipath/rootfs.tar.xz b/features/mdadm/tests/ts0001-guess-ignore-multipath/rootfs.tar.xz new file mode 100644 index 00000000..712601bb Binary files /dev/null and b/features/mdadm/tests/ts0001-guess-ignore-multipath/rootfs.tar.xz differ diff --git a/features/mdadm/tests/ts0001-guess-ignore-multipath/run b/features/mdadm/tests/ts0001-guess-ignore-multipath/run new file mode 100755 index 00000000..3183b89d --- /dev/null +++ b/features/mdadm/tests/ts0001-guess-ignore-multipath/run @@ -0,0 +1,21 @@ +#!/bin/bash -eu + +[ -z "${IGNORE_UNPRIV_USERNS_TESTS-}" ] || + exit 127 + +cwd="${0%/*}" + +export GUESS_SUFFIX=add:guess-root +export TEST_GUESS_ACTIONS="guess/root/action guess-config" + +export RESOLVE_MODALIAS= +export KERNEL_CONFIG=/dev/null + +export MAKE_INITRD_TRACE=1 +export MAKE_INITRD_TRACE_PIDS= +export MAKE_INITRD_TRACE_EXECUTE_PATTERNS='guess/root/action' +export MAKE_INITRD_TRACE_SRC_PATTERNS='features/*/guess/* features/rootfs/guess/fstype' +export MAKE_INITRD_TRACE_RUN_PATTERNS='*' + +utils/mi-bug-report "$cwd/rootfs.tar.xz" -- \ + .build/dest/usr/sbin/make-initrd --no-depmod -k '6.6.41-un-def-alt0.p11.1' test-guess