summaryrefslogtreecommitdiffstats
path: root/base/kernel-35/post-install
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2011-07-02 14:06:54 +0200
committertnut <tnut at nutyx dot com>2011-07-02 14:06:54 +0200
commit96b37eadc152350f36220213d90d44a6e83e626f (patch)
tree0c86c8847f4396f8360cda0d620592e0bd8bd934 /base/kernel-35/post-install
parenta3b6291d41abb49164c5f344c4e707d91919cee2 (diff)
downloadnutyx-extra-96b37eadc152350f36220213d90d44a6e83e626f.tar.gz
nutyx-extra-96b37eadc152350f36220213d90d44a6e83e626f.tar.bz2
nutyx-extra-96b37eadc152350f36220213d90d44a6e83e626f.tar.xz
nutyx-extra-96b37eadc152350f36220213d90d44a6e83e626f.zip
kernel-35, ajout pilotes et ajustement initrd
Diffstat (limited to 'base/kernel-35/post-install')
-rw-r--r--base/kernel-35/post-install42
1 files changed, 7 insertions, 35 deletions
diff --git a/base/kernel-35/post-install b/base/kernel-35/post-install
index c7cdc2160..e57bd1c07 100644
--- a/base/kernel-35/post-install
+++ b/base/kernel-35/post-install
@@ -20,44 +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/
+# Création de l'initrd
sh $WDIR/script/mkinitrd $WDIR
cp $WDIR/iso/isolinux/initrd /boot/nutyx-initrd
rm -r $SRC