From 93489676e60aba84b02a21751d8042d7ac607ec1 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Wed, 8 Jan 2003 13:49:27 +0000 Subject: definitively fixed bad version and release retrieved from BOOT kernel. --- kernel/update_kernel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/update_kernel') 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 ../.. -- cgit v1.2.1