diff options
author | tnut <tnut at nutyx dot com> | 2011-06-28 21:59:30 +0200 |
---|---|---|
committer | tnut <tnut at nutyx dot com> | 2011-06-28 21:59:30 +0200 |
commit | a14b0e5a2896d951a435a72ef2e1bb42918a8c5e (patch) | |
tree | fa80298be69ffc2766a812cda0cc89d00e8abcd2 /base/kernel-34/post-install | |
parent | 2bed5e044f86bcd8b31c4cc0e59d98efcdf9cd67 (diff) | |
download | nutyx-extra-a14b0e5a2896d951a435a72ef2e1bb42918a8c5e.tar.gz nutyx-extra-a14b0e5a2896d951a435a72ef2e1bb42918a8c5e.tar.bz2 nutyx-extra-a14b0e5a2896d951a435a72ef2e1bb42918a8c5e.tar.xz nutyx-extra-a14b0e5a2896d951a435a72ef2e1bb42918a8c5e.zip |
kernel-34, maj 2.6.34.10-1, ajout des modules virtualbox et ati
Diffstat (limited to 'base/kernel-34/post-install')
-rw-r--r-- | base/kernel-34/post-install | 62 |
1 files changed, 8 insertions, 54 deletions
diff --git a/base/kernel-34/post-install b/base/kernel-34/post-install index a8d7ae74f..d0ac1349d 100644 --- a/base/kernel-34/post-install +++ b/base/kernel-34/post-install @@ -20,62 +20,16 @@ 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} -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 - 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 - if [ -d $WDIR/rootfs/lib/modules/$version/kernel/drivers/net/$i ]; then - rm -r $WDIR/rootfs/lib/modules/$version/kernel/drivers/net/$i - fi -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/${version}/kernel/net/ - cp -a /lib/modules/$version/kernel/net/sunrpc \ - $WDIR/rootfs/lib/modules/$version/kernel/net/ -fi -cp /root/bin/install-${SCRIPT_VERSION}.ash $WDIR/rootfs/install/ +mkdir -p $WDIR/rootfs/lib/modules +cp -a /lib/modules/${version}\ +$WDIR/rootfs/lib/modules/ -cp -a /lib/modules/${version}/modules* \ -$WDIR/rootfs/lib/modules/${version}/ +# Copie du script d'install +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 +# Création de l'initrd sh $WDIR/script/mkinitrd $WDIR cp $WDIR/iso/isolinux/initrd /boot/nutyx-initrd -# rm -r $SRC +rm -r $SRC |