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