diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-10-09 00:51:24 +0200 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-10-09 00:51:24 +0200 |
commit | 18285e179d187fa27fc853900f91895c7ef00119 (patch) | |
tree | 4b5e8bd9306b94bd821aadee1ecffa2d2caeb2ec /base/kernel-34/post-install | |
parent | 07826d03611d5a289580c51beb9c62878348ac83 (diff) | |
download | nutyx-extra-18285e179d187fa27fc853900f91895c7ef00119.tar.gz nutyx-extra-18285e179d187fa27fc853900f91895c7ef00119.tar.bz2 nutyx-extra-18285e179d187fa27fc853900f91895c7ef00119.tar.xz nutyx-extra-18285e179d187fa27fc853900f91895c7ef00119.zip |
maj kernel-34#2.6.34.7-2
Diffstat (limited to 'base/kernel-34/post-install')
-rw-r--r-- | base/kernel-34/post-install | 72 |
1 files changed, 71 insertions, 1 deletions
diff --git a/base/kernel-34/post-install b/base/kernel-34/post-install index 4e5ec6d82..3d8492a4f 100644 --- a/base/kernel-34/post-install +++ b/base/kernel-34/post-install @@ -1 +1,71 @@ -depmod 2.6.34-NuTyX +version=2.6.34-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 |