Skip to content

Commit

Permalink
FIX dkms built issues for rhel kernel update ,change prerm script to …
Browse files Browse the repository at this point in the history
…fix.
  • Loading branch information
Perry_Yuan authored and Perry_Yuan committed Mar 9, 2017
1 parent 9e0394d commit 0c19129
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dkms
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion kernel_prerm.d_dkms
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0c19129

Please sign in to comment.