Skip to content

Commit c9f678d

Browse files
committed
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
1 parent 889387b commit c9f678d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ setup_kvm_mod_low_latency()
477477

478478
modinfo -p kvm | grep -q kvmclock_periodic_sync && HAS_KPS=1
479479
modinfo -p kvm | grep -q nx_huge_pages && HAS_NX_HP=1
480-
modinfo -p kvm_intel | grep -q ple_gap && HAS_PLE_GAP=1
480+
modinfo -p kvm_intel 2>/dev/null | grep -q ple_gap && HAS_PLE_GAP=1
481481
grep -qs kvmclock_periodic_sync "$kvm_modprobe_file" && WANTS_KPS=1
482482
grep -qs nx_huge_pages "$kvm_modprobe_file" && WANTS_NX_HP=1
483483
grep -qs ple_gap "$kvm_modprobe_file" && WANTS_PLE_GAP=1

0 commit comments

Comments
 (0)