diff options
author | tnut <tnut at nutyx dot com> | 2011-06-29 10:32:49 +0200 |
---|---|---|
committer | tnut <tnut at nutyx dot com> | 2011-06-29 10:32:49 +0200 |
commit | 2594339fc4d7a6449e847005135bd620865646f6 (patch) | |
tree | 0427b22545e8b711c63826e825691a25c20b3ddb | |
parent | 0af78000cceeb7085ec78cc27a3bea711b2d1867 (diff) | |
download | nutyx-extra-2594339fc4d7a6449e847005135bd620865646f6.tar.gz nutyx-extra-2594339fc4d7a6449e847005135bd620865646f6.tar.bz2 nutyx-extra-2594339fc4d7a6449e847005135bd620865646f6.tar.xz nutyx-extra-2594339fc4d7a6449e847005135bd620865646f6.zip |
kernel correction post-install
-rw-r--r-- | base/kernel/post-install | 62 |
1 files changed, 8 insertions, 54 deletions
diff --git a/base/kernel/post-install b/base/kernel/post-install index 06f668534..ca21ba1cf 100644 --- a/base/kernel/post-install +++ b/base/kernel/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 |