summaryrefslogtreecommitdiffstats
path: root/base/initrd-lts/Pkgfile
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-01-07 22:11:13 +0100
committertnut <thierryn1 at hispeed dot ch>2010-01-07 22:11:13 +0100
commit1f3e8eb96741a4c7c44f3a9825ab1fbf33f72f7f (patch)
tree2dedf38fcf815ae6650cef21f3d2e72b64c407e3 /base/initrd-lts/Pkgfile
parent0485e7fb76693771df5afe74c173e4ac58b51817 (diff)
downloadnutyx-pakxe-1f3e8eb96741a4c7c44f3a9825ab1fbf33f72f7f.tar.gz
nutyx-pakxe-1f3e8eb96741a4c7c44f3a9825ab1fbf33f72f7f.tar.bz2
nutyx-pakxe-1f3e8eb96741a4c7c44f3a9825ab1fbf33f72f7f.tar.xz
nutyx-pakxe-1f3e8eb96741a4c7c44f3a9825ab1fbf33f72f7f.zip
Ajout initrd#-lts2.6.30.10-1
Diffstat (limited to 'base/initrd-lts/Pkgfile')
-rw-r--r--base/initrd-lts/Pkgfile60
1 files changed, 60 insertions, 0 deletions
diff --git a/base/initrd-lts/Pkgfile b/base/initrd-lts/Pkgfile
new file mode 100644
index 000000000..8210235cd
--- /dev/null
+++ b/base/initrd-lts/Pkgfile
@@ -0,0 +1,60 @@
+# Description: L'initrd avec le système de maintenance
+# URL: http://www.kernel.org
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+
+name=initrd-lts
+version=2.6.30.10
+release=1
+_tools=29122009
+SCRIPT_VERSION="2009.2"
+source=()
+build(){
+wget http://kiao.no-ip.info/NuTyX/tools/install-${SCRIPT_VERSION}.ash
+wget http://kiao.no-ip.info/NuTyX/2009.2/`uname -m`/test/kernel-lts%23$version-1.pkg.tar.gz
+WDIR=$SRC/installtools
+tar xf kernel*
+mkdir -p $WDIR
+wget http://kiao.no-ip.info/NuTyX/tools/installtools-${_tools}.tar.gz
+tar -C $WDIR --use-compress-program=gzip -xf installtools-${_tools}.tar.gz
+
+mkdir -p $WDIR/rootfs/lib/modules/$version/kernel/{drivers,fs}
+cp -a lib/modules/$version/kernel/crypto \
+$WDIR/rootfs/lib/modules/$version/kernel/
+for i in ata block input ide hid message parport \
+serial misc net pcmcia scsi usb md
+do
+ if [ -d lib/modules/$version/kernel/drivers/$i ]; then
+ cp -a lib/modules/$version/kernel/drivers/$i \
+ $WDIR/rootfs/lib/modules/$version/kernel/drivers/
+ fi
+done
+for i in wireless irda wan bonding \
+hamradio appletalk cxgb3 mlx4 sfc
+do
+ rm -r $WDIR/rootfs/lib/modules/$version/kernel/drivers/net/$i
+done
+for i in fat ntfs smbfs vfat ext4
+do
+ if [ -d lib/modules/$version/kernel/fs/$i ]; then
+ cp -a lib/modules/$version/kernel/fs/$i \
+ $WDIR/rootfs/lib/modules/$version/kernel/fs/
+ fi
+done
+$WDIR/rootfs/sbin/depmod -b $WDIR/rootfs $version
+
+cp install-${SCRIPT_VERSION}.ash $WDIR/rootfs/root/
+sed -i "s/2009/${SCRIPT_VERSION}/g" $WDIR/rootfs/sbin/setup-install
+sed -i "s/2009/${SCRIPT_VERSION}/g" $WDIR/rootfs/sbin/setup-mirroir
+
+# Compression des modules
+cd $WDIR/rootfs/lib/modules/$version
+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
+sh $WDIR/script/mkinitrd $WDIR
+mkdir -p $PKG/boot
+cp $WDIR/iso/isolinux/initrd $PKG/boot/nutyx-initrd
+}