summaryrefslogtreecommitdiffstats
path: root/kernel/update_kernel
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-08-17 02:57:08 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-08-17 02:57:08 +0000
commit75845efae37e1f9b863ec3d75354d264b6abdaa6 (patch)
treedc73aab02415d8c590799b8b26ca4e06e6eb3ec7 /kernel/update_kernel
parent2357094a849f8aced3627c30fdea64d34cb3f057 (diff)
downloaddrakx-75845efae37e1f9b863ec3d75354d264b6abdaa6.tar
drakx-75845efae37e1f9b863ec3d75354d264b6abdaa6.tar.gz
drakx-75845efae37e1f9b863ec3d75354d264b6abdaa6.tar.bz2
drakx-75845efae37e1f9b863ec3d75354d264b6abdaa6.tar.xz
drakx-75845efae37e1f9b863ec3d75354d264b6abdaa6.zip
fix getting the kernel version, it's now much simpler and works in any case (hopefully!)
Diffstat (limited to 'kernel/update_kernel')
-rwxr-xr-xkernel/update_kernel2
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