From d25bf2591800694ea0d45caab0d6815a17df0f64 Mon Sep 17 00:00:00 2001 From: tnut Date: Thu, 5 May 2011 11:27:42 +0200 Subject: kernel-precision-380, maj 2.6.37.6-2, correction Pkgfile et post-install --- base/kernel-precision-380/post-install | 44 ++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 21 deletions(-) (limited to 'base/kernel-precision-380/post-install') diff --git a/base/kernel-precision-380/post-install b/base/kernel-precision-380/post-install index bff83f2e2..30513e1dc 100644 --- a/base/kernel-precision-380/post-install +++ b/base/kernel-precision-380/post-install @@ -1,7 +1,7 @@ version=2.6.37 SCRIPT_VERSION="pakxe" SRC=/tmp/work -WDIR=$SRC/nutyx-initrd-pakxe +WDIR=$SRC/nutyx-initrd ARCH=`uname -m` depmod $version if [ ! -d $SRC ]; then @@ -22,8 +22,10 @@ do done # Copie des modules kernels mkdir -p $WDIR/rootfs/lib/modules/$version/kernel/{drivers,fs} -cp -a /lib/modules/$version/kernel/crypto \ -$WDIR/rootfs/lib/modules/$version/kernel/ +if [ -f /lib/modules/$version/kernel/crypto ]; then + cp -a /lib/modules/$version/kernel/crypto \ + $WDIR/rootfs/lib/modules/$version/kernel/ +fi for i in ata block input ide hid message parport \ serial misc net pcmcia scsi usb md rtc do @@ -54,23 +56,23 @@ fi cp /root/bin/install-${SCRIPT_VERSION}.ash $WDIR/rootfs/install/ # Compression des dossiers -for i in etc sbin var lib usr - do mksquashfs $WDIR/rootfs/$i $WDIR/rootfs/sqfs/$i -done -if [ "$ARCH" == "i686" ]; then - mkdir $WDIR/rootfs/libT - for i in libc.so.6 libc-2.13.so ld-2.13.so ld-linux.so.2 - do mv $WDIR/rootfs/lib{,T}/$i - done -fi -for i in sbin var lib usr opt - do rm -r $WDIR/rootfs/$i - mkdir $WDIR/rootfs/$i -done -if [ "$ARCH" == "i686" ]; then - rm -r $WDIR/rootfs/lib - mv $WDIR/rootfs/lib{T,} -fi +# for i in etc sbin var lib usr +# do mksquashfs $WDIR/rootfs/$i $WDIR/rootfs/sqfs/$i +# done +# if [ "$ARCH" == "i686" ]; then +# mkdir $WDIR/rootfs/libT +# for i in libc.so.6 libc-2.13.so ld-2.13.so ld-linux.so.2 +# do mv $WDIR/rootfs/lib{,T}/$i +# done +# fi +# for i in sbin var lib usr opt +# do rm -r $WDIR/rootfs/$i +# mkdir $WDIR/rootfs/$i +# done +# if [ "$ARCH" == "i686" ]; then +# rm -r $WDIR/rootfs/lib +# mv $WDIR/rootfs/lib{T,} +# fi sh $WDIR/script/mkinitrd $WDIR cp $WDIR/iso/isolinux/initrd /boot/nutyx-initrd -rm -r $SRC +# rm -r $SRC -- cgit v1.2.3-70-g09d2