Kleine verbesserungen. bash -c statt source, sorgt dafÃr, das ein script abbruch nicht alles abbricht...

git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorInstall@5742 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2010-07-07 17:48:35 +00:00
parent 34805001bd
commit fffa1d84ca

View File

@ -367,7 +367,8 @@ install_cluster() {
echo "chmod 1777 tmp" >>$INSTALLROOT/root/.bash_profile
echo "if [ -d /tmp/afterinstall ]; then" >>$INSTALLROOT/root/.bash_profile
echo "for i in /tmp/afterinstall/*; do" >>$INSTALLROOT/root/.bash_profile
echo "source \$i /" >>$INSTALLROOT/root/.bash_profile
echo "chmod 755 \$i" >>$INSTALLROOT/root/.bash_profile
echo "bash -c \$i /" >>$INSTALLROOT/root/.bash_profile
echo "cd - >/dev/null" >>$INSTALLROOT/root/.bash_profile
echo "rm \$i" >>$INSTALLROOT/root/.bash_profile
echo "done" >>$INSTALLROOT/root/.bash_profile
@ -378,7 +379,7 @@ install_cluster() {
mknod $INSTALLROOT/dev/null c 1 3
mkdir $INSTALLROOT/media
mount -o bind /dev $INSTALLROOT/dev
mount -t proc none $INSTALLROOT/proc
mount -o bind /proc $INSTALLROOT/proc
chroot $INSTALLROOT /usr/bin/env -i HOME=/root TERM=$TERM /bin/bash --login
if [ -f "$INSTALLROOT/root/.bash_profile" ]; then
mv $INSTALLROOT/root/.bash_profile.store $INSTALLROOT/root/.bash_profile