Skip to content
Permalink
Browse files

FIX dkms built issues for rhel kernel update ,change prerm script to …

…fix.
  • Loading branch information...
yuzaipiaofei committed Mar 9, 2017
1 parent 9e0394d commit 0c19129b5d1f8e03498f6f2455ad9f7e14e9e606
Showing with 4 additions and 2 deletions.
  1. +3 −1 dkms
  2. +1 −1 kernel_prerm.d_dkms
4 dkms
@@ -1723,7 +1723,9 @@ do_uninstall()
fi
fi
done
rm -f "$dkms_tree/$module/kernel-$1-$2"
rm -rf "$dkms_tree/$module/kernel-$1-$2"
#Remove modules from dkms built tree
rm -rf "$dkms_tree/$module/$module_version/$1"
else
echo $""
echo $"Status: This module version was INACTIVE for this kernel."
@@ -9,7 +9,7 @@ while read line; do
vers=`echo "$line" | awk '{print $2}' | sed 's/,$//'`
arch=`echo "$line" | awk '{print $4}' | sed 's/:$//'`
echo "dkms: removing: $name $vers ($inst_kern) ($arch)" >&2
dkms remove -m $name -v $vers -k $inst_kern -a $arch
dkms uninstall -m $name -v $vers -k $inst_kern -a $arch
done < <(dkms status -k $inst_kern 2>/dev/null | grep ": installed")
fi

0 comments on commit 0c19129

Please sign in to comment.
You can’t perform that action at this time.