diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-08-17 02:57:08 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-08-17 02:57:08 +0000 |
commit | 75845efae37e1f9b863ec3d75354d264b6abdaa6 (patch) | |
tree | dc73aab02415d8c590799b8b26ca4e06e6eb3ec7 | |
parent | 2357094a849f8aced3627c30fdea64d34cb3f057 (diff) | |
download | drakx-backup-do-not-use-75845efae37e1f9b863ec3d75354d264b6abdaa6.tar drakx-backup-do-not-use-75845efae37e1f9b863ec3d75354d264b6abdaa6.tar.gz drakx-backup-do-not-use-75845efae37e1f9b863ec3d75354d264b6abdaa6.tar.bz2 drakx-backup-do-not-use-75845efae37e1f9b863ec3d75354d264b6abdaa6.tar.xz drakx-backup-do-not-use-75845efae37e1f9b863ec3d75354d264b6abdaa6.zip |
fix getting the kernel version, it's now much simpler and works in any case (hopefully!)
-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 |