diff options
Diffstat (limited to 'kernel/update_kernel')
-rwxr-xr-x | kernel/update_kernel | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/update_kernel b/kernel/update_kernel index 427bb249f..5ffabbe31 100755 --- a/kernel/update_kernel +++ b/kernel/update_kernel @@ -88,7 +88,7 @@ function create_modules_mar() { function install_kernel() { rpm=$1 - ver=$(rpm -qp --qf '%{name}' $rpm 2>/dev/null | perl -pe 's/kernel(-(BOOT))?-((\.?[0-9]+){3})\.(.*)/$3-$5$2/') + ver=$(rpm --nosignature -qpl $rpm | sed -n 's!/boot/vmlinuz-!!p') [ -n "$ver" ] || return if [ -n "$2" ]; then |