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.
This commit is contained in:
Ilya A. Arkhipov 2018-05-18 16:40:09 +03:00
parent e73b2756b8
commit 0240e809b5
1 changed files with 1 additions and 1 deletions

View File

@ -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"))"