Commit f3ccce3e authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-install-alt: fix install kernel modules

parent fbaa075e
...@@ -133,15 +133,13 @@ epm_install_alt_kernel_module() ...@@ -133,15 +133,13 @@ epm_install_alt_kernel_module()
local kflist='' local kflist=''
local kmplist='' local kmplist=''
local kmf km kf local kmf km kf
# fill kernel flavour list
for kmf in $*; do for kmf in $*; do
km="$(echo "$kmf" | cut -d- -f1)" km="$(echo "$kmf" | cut -d- -f1)"
kf="$(echo "$kmf" | cut -d- -f2,3)" kf="$(echo "$kmf" | cut -d- -f2,3)"
# use current flavour as default # use current flavour as default
[ "$km" = "$kf" ] && kf="$(get_current_kernel_flavour)" [ "$km" = "$kf" ] && kf="$(get_current_kernel_flavour)"
kvf="$(get_latest_kernel_rel $kf)"
#kmplist="$kmplist kernel-modules-$km-$kf"
# install kernel module for latest installed kernel
kmplist="$kmplist kernel-modules-$km-$kvf"
kflist="$kflist $kf" kflist="$kflist $kf"
done done
...@@ -154,6 +152,18 @@ epm_install_alt_kernel_module() ...@@ -154,6 +152,18 @@ epm_install_alt_kernel_module()
# skip install modules if there are no installed kernels (may be, a container) # skip install modules if there are no installed kernels (may be, a container)
epm installed "kernel-image-$kf" || return 0 epm installed "kernel-image-$kf" || return 0
# make list for install kernel modules
for kmf in $*; do
km="$(echo "$kmf" | cut -d- -f1)"
kf="$(echo "$kmf" | cut -d- -f2,3)"
# use current flavour as default
[ "$km" = "$kf" ] && kf="$(get_current_kernel_flavour)"
kvf="$(get_latest_kernel_rel $kf)"
#kmplist="$kmplist kernel-modules-$km-$kf"
# install kernel module for latest installed kernel
kmplist="$kmplist kernel-modules-$km-$kvf"
done
# secondly, install module(s) # secondly, install module(s)
epm_install_names $kmplist epm_install_names $kmplist
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment