diff options
author | tnut <tnut at nutyx dot com> | 2012-01-08 12:12:28 +0100 |
---|---|---|
committer | tnut <tnut at nutyx dot com> | 2012-01-08 12:12:28 +0100 |
commit | 9291e062cb24bac5d7c7059d4dc64669c1917b33 (patch) | |
tree | ae6f7e4fb2769d6c53b214c5e0b4d862f1df98dc /kernel/post-install | |
parent | c9972ec7f32bf9d37388e853fe9bf633e242d05a (diff) | |
download | nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.gz nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.bz2 nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.xz nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.zip |
aaabasicfs 2011-3 et split des dépot base et extra en 2 git séparé
Diffstat (limited to 'kernel/post-install')
-rw-r--r-- | kernel/post-install | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/kernel/post-install b/kernel/post-install new file mode 100644 index 000000000..faed640f7 --- /dev/null +++ b/kernel/post-install @@ -0,0 +1,40 @@ +version=3.1.6 +if [ ! -d /lib/modules/${version} ]; then + echo "post-install impossible" + echo "/lib/modules/${version} pas trouvé" + exit 1 +fi +SCRIPT_VERSION="pakxe.3" +SRC=/tmp/work +WDIR=$SRC/nutyx-initrd +ARCH=`uname -m` +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 +cp -a /lib/modules/${version} \ +$WDIR/rootfs/lib/modules/ + +# 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 |