From f5c6ed6ad04b901cd2b574c4990619354ee47c60 Mon Sep 17 00:00:00 2001 From: Matthew Burket Date: Fri, 24 Jan 2025 14:42:40 -0600 Subject: [PATCH] Adjust `kernel_module_disabled/missing_blacklist.fail.sh` The might some default config that disables a kernel module. To ensure we're testing this correctly remove the "blacklist" line from all .conf files under /etc/modprobe.d/*.conf. --- .../kernel_module_disabled/tests/missing_blacklist.fail.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/templates/kernel_module_disabled/tests/missing_blacklist.fail.sh b/shared/templates/kernel_module_disabled/tests/missing_blacklist.fail.sh index 8a1319eed45..bbcf97d54b9 100644 --- a/shared/templates/kernel_module_disabled/tests/missing_blacklist.fail.sh +++ b/shared/templates/kernel_module_disabled/tests/missing_blacklist.fail.sh @@ -1,5 +1,5 @@ #!/bin/bash # platform = multi_platform_rhel,multi_platform_ol,multi_platform_ubuntu -echo > /etc/modprobe.d/{{{ KERNMODULE }}}.conf +sed -i /{{{ KERNMODULE }}}/d /etc/modprobe.d/*.conf echo "install {{{ KERNMODULE }}} /bin/true" > /etc/modprobe.d/{{{ KERNMODULE }}}.conf