From 525d9ca354f657a37700495ce6d50a43bc651ce2 Mon Sep 17 00:00:00 2001 From: Benjamin Schieder Date: Fri, 11 May 2007 18:48:06 +0000 Subject: [PATCH] Benjamin Schieder: livecd/pkg_linux.conf: adapt for squashfs 3.2-r2 [2007032206451917291] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@8352 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- target/livecd/pkg_linux.conf | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/target/livecd/pkg_linux.conf b/target/livecd/pkg_linux.conf index dd3be3016..66ae85207 100644 --- a/target/livecd/pkg_linux.conf +++ b/target/livecd/pkg_linux.conf @@ -5,10 +5,14 @@ echo_status "Customizing for LiveCD Target ..." extract_squashfspatch() { my_ver=`echo ${vanilla_ver} | sed -e 's,^\(2\.[46]\.[0-9]*\)\(\..*\)$,\1,'` - [ "${my_ver:0:3}" == "2.6" ] && my_ver=2.6.15 || my_ver=2.4.32 - tar --use-compress-program=bzip2 -xOf $base/download/mirror/s/squashfs3.0.tar.bz2 \ - squashfs3.0/linux-${my_ver}/squashfs3.0-patch > $archdir/squashfs3.0.patch + if [ "${my_ver:0:3}" == "2.4" ] ; then + echo "SquashFS does no longer support 2.4.x Linux Kernels!" + exit 1 + fi + [ "${my_ver:0:3}" == "2.6" ] && my_ver=2.6.20 + tar --use-compress-program=bzip2 -xOf $base/download/mirror/s/squashfs3.2-r2.tar.bz2 \ + squashfs3.2-r2/kernel-patches/linux-${my_ver}/squashfs3.2-patch > $archdir/squashfs3.2.patch } hook_add prepatch 1 extract_squashfspatch -var_append patchfiles " " "$archdir/squashfs3.0.patch" +var_append patchfiles " " "$archdir/squashfs3.2.patch"