summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/kernel-33/.footprint4
-rw-r--r--base/kernel-33/.md5sum3
-rw-r--r--base/kernel-33/Pkgfile15
-rw-r--r--base/kernel-33/post-install72
4 files changed, 91 insertions, 3 deletions
diff --git a/base/kernel-33/.footprint b/base/kernel-33/.footprint
index 39a828a30..311878b1e 100644
--- a/base/kernel-33/.footprint
+++ b/base/kernel-33/.footprint
@@ -3,6 +3,7 @@ drwxr-xr-x root/root boot/
-rw-r--r-- root/root boot/config-2.6.33.7
lrwxrwxrwx root/root boot/kernel -> kernel-2.6.33.7
-rw-r--r-- root/root boot/kernel-2.6.33.7
+-rw-r--r-- root/root boot/nutyx-initrd.tar.xz
drwxr-xr-x root/root lib/
drwxr-xr-x root/root lib/firmware/
drwxr-xr-x root/root lib/firmware/3com/
@@ -2389,6 +2390,9 @@ drwxr-xr-x root/root lib/modules/2.6.33-NuTyX/kernel/sound/usb/usx2y/
-rw-r--r-- root/root lib/modules/2.6.33-NuTyX/modules.symbols.bin
-rw-r--r-- root/root lib/modules/2.6.33-NuTyX/modules.usbmap
lrwxrwxrwx root/root lib/modules/2.6.33-NuTyX/source -> /usr/src/linux-2.6.33
+drwxr-xr-x root/root root/
+drwxr-xr-x root/root root/bin/
+-rw-r--r-- root/root root/bin/install-attapu.ash
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/src/
drwxr-xr-x root/root usr/src/linux-2.6.33/
diff --git a/base/kernel-33/.md5sum b/base/kernel-33/.md5sum
index 5310a26d4..48efe7239 100644
--- a/base/kernel-33/.md5sum
+++ b/base/kernel-33/.md5sum
@@ -1,4 +1,7 @@
9d9c70259591cc6d8797bb84b9dbd0ab config
38550ec26e5368286e2fde8fb03fa744 config_64
+2492f02b9f4a88d19bd6c208ce98330f install-attapu.ash
+8ba54feb5e098b759d0306c29767a3a4 installtools-08102010.tar.gz
c3883760b18d50e8d78819c54d579b00 linux-2.6.33.tar.bz2
+087bd17651890c88a00df293cc24ca85 nutyx-initrd-extra-08102010.tar.bz2
04b3affb4f7fb3035303a32bd6080baf patch-2.6.33.7.bz2
diff --git a/base/kernel-33/Pkgfile b/base/kernel-33/Pkgfile
index fb00ec0c2..c2f1f2cc1 100644
--- a/base/kernel-33/Pkgfile
+++ b/base/kernel-33/Pkgfile
@@ -6,10 +6,16 @@
name=kernel-33
version=2.6.33.7
_BaseVersion=2.6.33
-release=1
+release=2
PKGMK_NO_STRIP="yes"
+SCRIPT_VERSION="attapu"
+_extra=08102010
+_tools=08102010
source=(http://www.kernel.org/pub/linux/kernel/v2.6/linux-${_BaseVersion}.tar.bz2 config_64 config\
- http://www.kernel.org/pub/linux/kernel/v2.6/patch-$version.bz2)
+ http://www.kernel.org/pub/linux/kernel/v2.6/patch-$version.bz2\
+ http://nutyx.meticul.eu/install-${SCRIPT_VERSION}.ash\
+ http://nutyx.meticul.eu/files/nutyx-initrd-extra-${_extra}.tar.bz2\
+ http://nutyx.meticul.eu/files/installtools-${_tools}.tar.gz)
build(){
bzip2 -d patch-$version.bz2
@@ -62,4 +68,9 @@ mkdir $PKG/usr/src/linux-${_BaseVersion}/arch
mv $SRC/linux-${_BaseVersion}/arch/x86 $PKG/usr/src/linux-${_BaseVersion}/arch
mv $SRC/linux-${_BaseVersion}/vmlinux $PKG/usr/src/linux-${_BaseVersion}/
mv $SRC/linux-${_BaseVersion}/Module.symvers $PKG/usr/src/linux-${_BaseVersion}/
+mkdir -p $PKG/root/bin
+install -m644 $SRC/install-${SCRIPT_VERSION}.ash \
+ $PKG/root/bin/install-${SCRIPT_VERSION}.ash
+cd $SRC
+bsdtar -c "-J" -f $PKG/boot/nutyx-initrd.tar.xz nutyx-initrd-2009
}
diff --git a/base/kernel-33/post-install b/base/kernel-33/post-install
index 990b6c787..a792d17a3 100644
--- a/base/kernel-33/post-install
+++ b/base/kernel-33/post-install
@@ -1 +1,71 @@
-depmod 2.6.33-NuTyX
+version=2.6.33-NuTyX
+SCRIPT_VERSION="attapu"
+SRC=/tmp/work
+WDIR=$SRC/nutyx-initrd-2009
+depmod $version
+if [ ! -d $SRC ]; then
+ mkdir -p $SRC
+fi
+tar -C $SRC -xf /boot/nutyx-initrd.* || exit 1
+cp /root/bin/install-${SCRIPT_VERSION}.ash \
+$WDIR/rootfs/install/
+for i in $WDIR/rootfs/install/setup-install \
+ $WDIR/rootfs/install/setup-mirroir
+do
+ sed -i "s|#INSTALL#|install-$SCRIPT_VERSION.ash|" $i || exit 1
+done
+
+for i in setup-grub functions setup-main main.txt
+do
+ sed -i "s|#VERSION#|$SCRIPT_VERSION|" $WDIR/rootfs/install/$i || exit 1
+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/
+for i in ata block input ide hid message parport \
+serial misc net pcmcia scsi usb md rtc
+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 fs nfs nfs_common nfsd lockd
+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
+if [ -d /lib/modules/$version/kernel/net/sunrpc ]; then
+ mkdir -p $WDIR/rootfs/lib/modules/${_baseversion}-NuTyX/kernel/net/
+ cp -a /lib/modules/$version/kernel/net/sunrpc \
+ $WDIR/rootfs/lib/modules/$version/kernel/net/
+fi
+$WDIR/rootfs/sbin/depmod -b $WDIR/rootfs $version
+rm $WDIR/rootfs/sbin/depmod
+cp /root/bin/install-${SCRIPT_VERSION}.ash $WDIR/rootfs/install/
+
+# 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
+cp $WDIR/iso/isolinux/initrd /boot/nutyx-initrd
+rm -r $SRC