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:
parent
0804bba5dd
commit
38263c28c0
@ -334,6 +334,7 @@ install_cluster() {
|
|||||||
INSTSOURCE=$3
|
INSTSOURCE=$3
|
||||||
|
|
||||||
sed -e "/^#/d" -e "/^ *$/d" $CFGFILE >/tmp/install$$
|
sed -e "/^#/d" -e "/^ *$/d" $CFGFILE >/tmp/install$$
|
||||||
|
NUMOFPKG=`cat /tmp/install$$|wc -l`
|
||||||
exec 3</tmp/install$$
|
exec 3</tmp/install$$
|
||||||
if [ ! -z ${NO_DEV} ]; then
|
if [ ! -z ${NO_DEV} ]; then
|
||||||
INSTOPT="${INSTOPT} -e"
|
INSTOPT="${INSTOPT} -e"
|
||||||
@ -342,11 +343,13 @@ install_cluster() {
|
|||||||
INSTOPT="${INSTOPT} -a"
|
INSTOPT="${INSTOPT} -a"
|
||||||
fi
|
fi
|
||||||
while read -r <&3 INSTCD INSTPKG; do
|
while read -r <&3 INSTCD INSTPKG; do
|
||||||
|
echo -n "$NUMOFPKG: "
|
||||||
if [ "$INSTCD" == "Boot" ]; then
|
if [ "$INSTCD" == "Boot" ]; then
|
||||||
installpkg ${INSTOPT} -m $INSTALLROOT -di $INSTSOURCE/$INSTPKG
|
installpkg ${INSTOPT} -m $INSTALLROOT -doi $INSTSOURCE/$INSTPKG
|
||||||
else
|
else
|
||||||
echo "$INSTCD $INSTPKG" >>$INSTALLROOT/var/install/pkg_to_do
|
echo "$INSTCD $INSTPKG" >>$INSTALLROOT/var/install/pkg_to_do
|
||||||
fi
|
fi
|
||||||
|
(( NUMOFPKG-- ))
|
||||||
done
|
done
|
||||||
if [ -f $INSTALLROOT/root/.bash_profile ]; then
|
if [ -f $INSTALLROOT/root/.bash_profile ]; then
|
||||||
cp $INSTALLROOT/root/.bash_profile $INSTALLROOT/root/.bash_profile.store
|
cp $INSTALLROOT/root/.bash_profile $INSTALLROOT/root/.bash_profile.store
|
||||||
|
@ -100,11 +100,14 @@ install/.basedirs $INSTALLDIR
|
|||||||
cd $INSTALLDIR
|
cd $INSTALLDIR
|
||||||
if [ ! -d $INSTALLDIR/var/install ]; then
|
if [ ! -d $INSTALLDIR/var/install ]; then
|
||||||
print "Create install info Directory"
|
print "Create install info Directory"
|
||||||
mkdir -p $INSTALLDIR/var/install
|
mkdir -p $INSTALLDIR/var/install &&
|
||||||
chown root:root $INSTALLDIR/var/install
|
chown root:root $INSTALLDIR/var/install &&
|
||||||
chmod 750 $INSTALLDIR/var/install
|
chmod 750 $INSTALLDIR/var/install
|
||||||
print_status success
|
print_status success
|
||||||
fi
|
fi
|
||||||
|
if [ ! -d $INSTALLDIR/var/install/contents ]; then
|
||||||
|
touch $INSTALLDIR/var/install/contents
|
||||||
|
fi
|
||||||
install_cluster $CFGFILE $INSTALLDIR $SOURCE
|
install_cluster $CFGFILE $INSTALLDIR $SOURCE
|
||||||
install_kernel $INSTALLDIR
|
install_kernel $INSTALLDIR
|
||||||
make_boot $INSTALLDIR
|
make_boot $INSTALLDIR
|
||||||
|
Loading…
Reference in New Issue
Block a user