Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (d242c41173003aea78150e49222fc4af5e0a0126)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Justin Boffemmyer <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (d242c41173003aea78150e49222fc4af5e0a0126)
  • Date: Fri, 21 Nov 2008 17:31:59 -0600

GIT changes to test cauldron by Justin Boffemmyer <flux AT sourcemage.org>:

scripts/cauldronchr.sh | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit d242c41173003aea78150e49222fc4af5e0a0126
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>

scripts/cauldronchr.sh: ensure mount success

Followed each mount command with '&&' to ensure that either they succeed
or the script fails before entering the chroot.

commit e40037a736b01b102c852d6b0a3a1217680267c9
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>

scripts/cauldronchr.sh: corrected PS1 export

If a login bash is called, it will source /etc/profile, which defines
its own PS1 and therefore overwrites what the script sets. Additionally,
forgot the space after the '$' char in the prompt setting.

diff --git a/scripts/cauldronchr.sh b/scripts/cauldronchr.sh
index 7db5dd3..2280d5e 100755
--- a/scripts/cauldronchr.sh
+++ b/scripts/cauldronchr.sh
@@ -56,14 +56,14 @@ fi

CHROOT_DIR="${CHROOT_DIR:-.}"
[[ $# -gt 0 ]] && CHROOT_CMD="$@"
-CHROOT_CMD="${CHROOT_CMD:-/bin/bash -l}"
+CHROOT_CMD="${CHROOT_CMD:-/bin/bash}"

-mount --bind /dev "$CHROOT_DIR"/dev
-mount --bind /dev/pts "$CHROOT_DIR"/dev/pts
-mount --bind /proc "$CHROOT_DIR"/proc
+mount --bind /dev "$CHROOT_DIR"/dev &&
+mount --bind /dev/pts "$CHROOT_DIR"/dev/pts &&
+mount --bind /proc "$CHROOT_DIR"/proc &&

export CAULDRON_CHROOT="$CHROOT_DIR"
-export PS1="[chroot]\u \w$"
+export PS1="[chroot]\u \w$ "

chroot "$CHROOT_DIR" $CHROOT_CMD




  • [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (d242c41173003aea78150e49222fc4af5e0a0126), Justin Boffemmyer, 11/21/2008

Archive powered by MHonArc 2.6.24.

Top of Page