From c9f678d8a1900faa7e0d2072d4a990084af4e963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavol=20=C5=BD=C3=A1=C4=8Dik?= Date: Tue, 4 Mar 2025 10:06:47 +0100 Subject: [PATCH] functions: Silence errors if module kvm_intel does not exist Without the redirect to /dev/null, an error message would be reported in TuneD logs on aarch64 machines, which do not have the kernel module. Resolves: RHEL-79943 --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 16ef44a..3caff9c 100644 --- a/functions +++ b/functions @@ -477,7 +477,7 @@ setup_kvm_mod_low_latency() modinfo -p kvm | grep -q kvmclock_periodic_sync && HAS_KPS=1 modinfo -p kvm | grep -q nx_huge_pages && HAS_NX_HP=1 - modinfo -p kvm_intel | grep -q ple_gap && HAS_PLE_GAP=1 + modinfo -p kvm_intel 2>/dev/null | grep -q ple_gap && HAS_PLE_GAP=1 grep -qs kvmclock_periodic_sync "$kvm_modprobe_file" && WANTS_KPS=1 grep -qs nx_huge_pages "$kvm_modprobe_file" && WANTS_NX_HP=1 grep -qs ple_gap "$kvm_modprobe_file" && WANTS_PLE_GAP=1