From fffa1d84ca034c90532a8b499fb9f12015cb6fbb Mon Sep 17 00:00:00 2001 From: kueller Date: Wed, 7 Jul 2010 17:48:35 +0000 Subject: [PATCH] =?UTF-8?q?Kleine=20verbesserungen.=20bash=20-c=20statt=20?= =?UTF-8?q?source,=20sorgt=20daf=C3=83r,=20das=20ein=20script=20abbruch=20?= =?UTF-8?q?nicht=20alles=20abbricht...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorInstall@5742 504e572c-2e33-0410-9681-be2bf7408885 --- .function | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.function b/.function index 7ac950e..2a01608 100755 --- a/.function +++ b/.function @@ -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