diff options
Diffstat (limited to 'eclass/redcore-kernel.eclass')
-rw-r--r-- | eclass/redcore-kernel.eclass | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/eclass/redcore-kernel.eclass b/eclass/redcore-kernel.eclass index cb855639..f0ac4239 100644 --- a/eclass/redcore-kernel.eclass +++ b/eclass/redcore-kernel.eclass @@ -724,15 +724,11 @@ _grub2_update_grubcfg() { fi } -_remove_dkms_modules() { - if [ "${PR}" == "r0" ] ; then - local kver="${PV}-${K_ROGKERNEL_SELF_TARBALL_NAME}" - else - local kver="${PV}-${K_ROGKERNEL_SELF_TARBALL_NAME}-${PR}" - fi +_reload_dkms_modules() { if [[ -x $(which dkms) ]] ; then for i in $(dkms status | cut -d " " -f1,2 | sed -e 's/,//g' | sed -e 's/ /\//g' | sed -e 's/://g') ; do - dkms remove $i -k "${kver}" + dkms remove $i -k --all + dkms add $i done fi } @@ -767,7 +763,7 @@ redcore-kernel_pkg_postrm() { if _is_kernel_binary; then _dracut_initramfs_delete fi - _remove_dkms_modules + _reload_dkms_modules _grub2_update_grubcfg } |