diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-08-05 23:21:38 +0200 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-08-05 23:21:38 +0200 |
commit | 6af37dba7167c05d42ade01546e3e235ad22f952 (patch) | |
tree | 76f018a03d5fca40fc739226b065874da4be41fa /base/initrd/Pkgfile | |
parent | 2afb1b4eecda86cc61c6a8f6c79dd10ac7466f2d (diff) | |
download | nutyx-extra-6af37dba7167c05d42ade01546e3e235ad22f952.tar.gz nutyx-extra-6af37dba7167c05d42ade01546e3e235ad22f952.tar.bz2 nutyx-extra-6af37dba7167c05d42ade01546e3e235ad22f952.tar.xz nutyx-extra-6af37dba7167c05d42ade01546e3e235ad22f952.zip |
maj initrd#2.6.34.2-1
Diffstat (limited to 'base/initrd/Pkgfile')
-rw-r--r-- | base/initrd/Pkgfile | 40 |
1 files changed, 28 insertions, 12 deletions
diff --git a/base/initrd/Pkgfile b/base/initrd/Pkgfile index c50d7366e..0b3f8db24 100644 --- a/base/initrd/Pkgfile +++ b/base/initrd/Pkgfile @@ -4,26 +4,29 @@ # Packager: thierryn1 at hispeed dot ch name=initrd -version=2.6.34.1 -release=6 -_tools=26072010 +version=2.6.34.2 +release=1 +_tools=05082010 +_extra=05082010 _baseversion=2.6.34 SCRIPT_VERSION="attapu" source=(http://kiao.no-ip.info/NuTyX/tools/install-${SCRIPT_VERSION}.ash\ - http://kiao.no-ip.info/NuTyX/attapu/`uname -m`/release/kernel%23$version-2.pkg.tar.gz\ + http://kiao.no-ip.info/NuTyX/attapu/`uname -m`/release/kernel%23$version-1.pkg.tar.gz\ + http://kiao.no-ip.info/NuTyX/tools/nutyx-initrd-extra-${_extra}.tar.bz2 http://kiao.no-ip.info/NuTyX/tools/installtools-${_tools}.tar.gz) build(){ + WDIR=$SRC/nutyx-initrd-2009 + +# Mise à jour de la version for i in $WDIR/rootfs/install/setup-install \ $WDIR/rootfs/install/setup-mirroir do sed -i "s|#INSTALL#|install-$SCRIPT_VERSION.ash|" $i done -for i in $WDIR/rootfs/etc/init.d/main.txt $WDIR/rootfs/etc/init.d/functions \ - $WDIR/rootfs/install/setup-grub -do - sed -i "s|#VERSION#|$SCRIPT_VERSION|" $i -done +sed -i "s|#VERSION#|$SCRIPT_VERSION|" $WDIR/rootfs/install/setup-grub + +# Copie des modules kernels mkdir -p $WDIR/rootfs/lib/modules/${_baseversion}-NuTyX/kernel/{drivers,fs} cp -a lib/modules/${_baseversion}-NuTyX/kernel/crypto \ $WDIR/rootfs/lib/modules/${_baseversion}-NuTyX/kernel/ @@ -53,7 +56,7 @@ if [ -d lib/modules/${_baseversion}-NuTyX/kernel/net/sunrpc ]; then $WDIR/rootfs/lib/modules/${_baseversion}-NuTyX/kernel/net/ fi $WDIR/rootfs/sbin/depmod -b $WDIR/rootfs ${_baseversion}-NuTyX - +rm $WDIR/rootfs/sbin/depmod cp install-${SCRIPT_VERSION}.ash $WDIR/rootfs/root/ # Compression des modules @@ -61,8 +64,21 @@ cd $WDIR/rootfs/lib/modules/${_baseversion}-NuTyX find . -name "*.ko" -exec gzip '{}' \; sed -i 's/\.ko/.ko.gz/g' modules.dep cd - -sed -i "s/#version#/$version/" $WDIR/iso/isolinux/boot.msg -cp boot/kernel-$version $WDIR/iso/isolinux/kernel + +# Compression des dossiers +for i in sbin var lib usr opt etc + do mksquashfs $WDIR/rootfs/$i $WDIR/rootfs/sqfs/$i +done +mkdir $WDIR/rootfs/libT +for i in libc.so.6 ld-linux.so.2 + do mv $WDIR/rootfs/lib{,T}/$i +done +for i in sbin var lib usr opt + do rm -r $WDIR/rootfs/$i + mkdir $WDIR/rootfs/$i +done +rm -r $WDIR/rootfs/lib +mv $WDIR/rootfs/lib{T,} sh $WDIR/script/mkinitrd $WDIR mkdir -p $PKG/boot cp $WDIR/iso/isolinux/initrd $PKG/boot/nutyx-initrd |