From 0240e809b56abe37ed34c44654356064e9a84e79 Mon Sep 17 00:00:00 2001 From: "Ilya A. Arkhipov" Date: Fri, 18 May 2018 16:40:09 +0300 Subject: [PATCH] Show just modules (*.ko) in kpatch list: load --all working just for .ko: for i in "$INSTALLDIR/$(uname -r)"/*.ko; do USUALLY, all modules have .ko extension /var/lib/kpatch can have not only modules, in my case (Yes it just my case) I have list with patches included in module. --- kpatch/kpatch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kpatch/kpatch b/kpatch/kpatch index 9c686d6..ecce9f9 100755 --- a/kpatch/kpatch +++ b/kpatch/kpatch @@ -533,7 +533,7 @@ case "$1" in echo "Installed patch modules:" for kdir in "$INSTALLDIR"/*; do [[ -e "$kdir" ]] || continue - for module in "$kdir"/*; do + for module in "$kdir"/*.ko; do [[ -e "$module" ]] || continue mod_name "$module" echo "$MODNAME ($(basename "$kdir"))"