Funktionalität so erweitert, so dass beim installieren eines config clusters,

die anzahl der noch zu installierenden files mit der installation meldung
ausgegeben wird.



git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorInstall@4614 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2009-04-22 18:04:11 +00:00
parent 0804bba5dd
commit 38263c28c0
2 changed files with 10 additions and 4 deletions

View File

@ -334,6 +334,7 @@ install_cluster() {
INSTSOURCE=$3
sed -e "/^#/d" -e "/^ *$/d" $CFGFILE >/tmp/install$$
NUMOFPKG=`cat /tmp/install$$|wc -l`
exec 3</tmp/install$$
if [ ! -z ${NO_DEV} ]; then
INSTOPT="${INSTOPT} -e"
@ -342,11 +343,13 @@ install_cluster() {
INSTOPT="${INSTOPT} -a"
fi
while read -r <&3 INSTCD INSTPKG; do
echo -n "$NUMOFPKG: "
if [ "$INSTCD" == "Boot" ]; then
installpkg ${INSTOPT} -m $INSTALLROOT -di $INSTSOURCE/$INSTPKG
installpkg ${INSTOPT} -m $INSTALLROOT -doi $INSTSOURCE/$INSTPKG
else
echo "$INSTCD $INSTPKG" >>$INSTALLROOT/var/install/pkg_to_do
fi
(( NUMOFPKG-- ))
done
if [ -f $INSTALLROOT/root/.bash_profile ]; then
cp $INSTALLROOT/root/.bash_profile $INSTALLROOT/root/.bash_profile.store

View File

@ -100,11 +100,14 @@ install/.basedirs $INSTALLDIR
cd $INSTALLDIR
if [ ! -d $INSTALLDIR/var/install ]; then
print "Create install info Directory"
mkdir -p $INSTALLDIR/var/install
chown root:root $INSTALLDIR/var/install
chmod 750 $INSTALLDIR/var/install
mkdir -p $INSTALLDIR/var/install &&
chown root:root $INSTALLDIR/var/install &&
chmod 750 $INSTALLDIR/var/install
print_status success
fi
if [ ! -d $INSTALLDIR/var/install/contents ]; then
touch $INSTALLDIR/var/install/contents
fi
install_cluster $CFGFILE $INSTALLDIR $SOURCE
install_kernel $INSTALLDIR
make_boot $INSTALLDIR