summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-01-08 13:49:27 +0000
committerFrancois Pons <fpons@mandriva.com>2003-01-08 13:49:27 +0000
commit93489676e60aba84b02a21751d8042d7ac607ec1 (patch)
tree6a19cc70e6a0b60740f126b52be678bf3df5d8aa /kernel
parentc92842d727cfe4e9589f312870fc79defba8f1f6 (diff)
downloaddrakx-backup-do-not-use-93489676e60aba84b02a21751d8042d7ac607ec1.tar
drakx-backup-do-not-use-93489676e60aba84b02a21751d8042d7ac607ec1.tar.gz
drakx-backup-do-not-use-93489676e60aba84b02a21751d8042d7ac607ec1.tar.bz2
drakx-backup-do-not-use-93489676e60aba84b02a21751d8042d7ac607ec1.tar.xz
drakx-backup-do-not-use-93489676e60aba84b02a21751d8042d7ac607ec1.zip
definitively fixed bad version and release retrieved from BOOT kernel.
Diffstat (limited to 'kernel')
-rwxr-xr-xkernel/update_kernel4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/update_kernel b/kernel/update_kernel
index 9cea09e7d..7dc35b713 100755
--- a/kernel/update_kernel
+++ b/kernel/update_kernel
@@ -38,13 +38,13 @@ function create_modules() {
[ -e $ALL_KERNELS/.main ] && main=$(cat $ALL_KERNELS/.main)
-rpm=$(rpm -qp --qf '%{name}' /RPMS/kernel-BOOT-*.rpm | perl -pe 's/kernel-BOOT-(.*)\.(.*)/$1-${2}BOOT/')
+rpm=$(rpm -qpl /export/Mandrake/RPMS/kernel-BOOT-*.rpm | perl -ne 'm|/boot/vmlinuz-(.*)| and print "$1\n"')
if [ -n "$rpm" -a ! -e $ALL_KERNELS/$rpm ]; then
[ -n "$main" ] && rm -rf $ALL_KERNELS/$main
cd $ALL_KERNELS
rm -rf $rpm ; mkdir $rpm
cd $rpm
- rpm2cpio /RPMS/kernel-BOOT-*.rpm | cpio -id
+ rpm2cpio /export/Mandrake/RPMS/kernel-BOOT-*.rpm | cpio -id
find -type f -name "*.o.gz" | xargs gunzip
cd ../..