From 907fcfdccdd0ddd33accef87490f9e0b750797ad Mon Sep 17 00:00:00 2001 From: gobo72 Date: Fri, 4 Mar 2011 02:52:42 +0000 Subject: [PATCH] =?utf8?q?-D=C3=A9plac=C3=A9=20nano=20du=20stage3=20au=20s?= =?utf8?q?tage=202=20(car=20causait=20probl=C3=A8me=20vu=20qu'on=20enl?= =?utf8?q?=C3=A8ve=20/tools=20=C3=A0=20la=20fin=20du=20stage2)=20-Finalisa?= =?utf8?q?tion=20de=20la=20conversion=20du=20stage3.=20Tout=20semble=20bie?= =?utf8?q?n=20compiler.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- stage2/INSTALL | 3 ++- stage2/TODO | 3 --- stage2/install-1 | 2 ++ stage2/install-2 | 1 + {stage3/resources => stage2/misc}/nanorc | 0 stage2/packages-update | 3 +++ stage2/pkg/nano | 8 ++++++++ stage2/post-install | 7 ++++++- stage2/pre-install | 18 ++++++++++++++++++ stage3/install-1 | 1 - stage3/packages-update | 3 --- stage3/pkg/nano | 8 -------- 12 files changed, 40 insertions(+), 17 deletions(-) rename {stage3/resources => stage2/misc}/nanorc (100%) create mode 100644 stage2/pkg/nano create mode 100755 stage2/pre-install delete mode 100644 stage3/pkg/nano diff --git a/stage2/INSTALL b/stage2/INSTALL index ec32eea..d009cd4 100644 --- a/stage2/INSTALL +++ b/stage2/INSTALL @@ -33,6 +33,7 @@ Note: In this example, the destination partition is /dev/hda6, and >$ /mnt/linux/mnt/hvlinux/scripts/stage2/install-1 9. After that, compile a fresh kernel. + (réactiver support pour les modules) 10. type 'exit' @@ -53,4 +54,4 @@ Post-install guide 1. Compiler nouveau kernel 2. Ajouter une entrée à /boot/grub/menu.lst 3. Effacer le répertoire /tools et /cross-tools - 4. Rouler le script stage2/misc/udev-create-persistent-net.sh + 4. Rouler le script /usr/local/bin/udev-create-persistent-net.sh diff --git a/stage2/TODO b/stage2/TODO index 75d301f..e69de29 100644 --- a/stage2/TODO +++ b/stage2/TODO @@ -1,3 +0,0 @@ - --Nettoyer tous les link temporaires automatiquement (seulement après avoir - redémarré et vérifié que tout fonctionne correctement). diff --git a/stage2/install-1 b/stage2/install-1 index dafcad6..94ca72f 100755 --- a/stage2/install-1 +++ b/stage2/install-1 @@ -14,6 +14,8 @@ fi init_log_file +rscr mult "Performing pre-install" pre-install + ipkg -l "${PERL}-pass1" ${PERL} ipkg -m noac ${KERNEL} ipkg -m noac ${MANPAGES} diff --git a/stage2/install-2 b/stage2/install-2 index 4d855d2..6f7cf5f 100755 --- a/stage2/install-2 +++ b/stage2/install-2 @@ -39,6 +39,7 @@ ipkg ${UDEV} ipkg -m noac ${UDEV_CONFIG} ipkg ${GRUB} ipkg -m acnb ${DHCP} +ipkg ${NANO} rscr once "Installing HV-utilities" install-hv-utilities rscr once "Installing bootscripts" install-bootscripts diff --git a/stage3/resources/nanorc b/stage2/misc/nanorc similarity index 100% rename from stage3/resources/nanorc rename to stage2/misc/nanorc diff --git a/stage2/packages-update b/stage2/packages-update index 8e63ce5..fd9ba07 100755 --- a/stage2/packages-update +++ b/stage2/packages-update @@ -28,6 +28,9 @@ lpkg 0 ${CLOOG_PPL} lpkg 0 ${BINUTILS} lpkg 0 ${GCC} +# These packages were already downloaded for stage1: +lpkg 1 ${NANO} + # These packages were already downloaded for stage1: lpkg 1 ${ZLIB} lpkg 1 ${SED} diff --git a/stage2/pkg/nano b/stage2/pkg/nano new file mode 100644 index 0000000..95f125b --- /dev/null +++ b/stage2/pkg/nano @@ -0,0 +1,8 @@ +#!/bin/bash + +# On re-installe nano car il a ete installe au stage1 avec un path non-standard + +hvbuild_post() +{ + install -m644 ${SCRDIR}/misc/nanorc /etc +} diff --git a/stage2/post-install b/stage2/post-install index f0f33e0..74122ad 100755 --- a/stage2/post-install +++ b/stage2/post-install @@ -37,7 +37,12 @@ sed -i -e "s!^\(PATH=\).*tools.*!\1${SED_REP}!" /etc/profile # Removing /tools directory if [ -d /tools ]; then - mv /tools /tools.to.remove.after.stage2 + DEST=/usr/src/tools + if [ -d ${DEST} ]; then + # Remove old backup + rm -rf ${DEST} + fi + mv /tools ${DEST} fi ldconfig diff --git a/stage2/pre-install b/stage2/pre-install new file mode 100755 index 0000000..b9e0775 --- /dev/null +++ b/stage2/pre-install @@ -0,0 +1,18 @@ +#!/bin/bash + +# Reading system configuration informations, functions and package versions. +source ../sysinfos +source ../functions +source ../packages-list + +# Removing /cross-tools directory +if [ -d /cross-tools ]; then + DEST=/usr/src/cross-tools + if [ -d ${DEST} ]; then + # Remove old backup + rm -rf ${DEST} + fi + mv /cross-tools ${DEST} +fi + +exit $? diff --git a/stage3/install-1 b/stage3/install-1 index 63f28c5..f2c52ad 100755 --- a/stage3/install-1 +++ b/stage3/install-1 @@ -14,7 +14,6 @@ fi init_log_file -ipkg ${NANO} ipkg ${WHICH} ipkg -m acnb ${REISERFSPROGS} ipkg -m acnb ${POPT} diff --git a/stage3/packages-update b/stage3/packages-update index 0ebc51c..8d5f230 100755 --- a/stage3/packages-update +++ b/stage3/packages-update @@ -16,9 +16,6 @@ if [ ${#} -eq 1 -a "x${1}" = "xtest" ]; then export TEST_INTEGRITY=1 fi -# These packages were already downloaded for stage1: -lpkg 1 ${NANO} - # These packages are only for stage3 fpkg_gnu ${WHICH} fpkg ${PCIUTILS} ftp://ftp.kernel.org/pub/software/utils/pciutils diff --git a/stage3/pkg/nano b/stage3/pkg/nano deleted file mode 100644 index d1c986f..0000000 --- a/stage3/pkg/nano +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -# On re-installe nano car il a ete installe au stage0 avec un path non-standard - -hvbuild_post() -{ - install -m644 ${SCRDIR}/resources/nanorc /etc -} -- 2.20.1