summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2006-09-13 23:37:26 +0000
committerJoshua Nichols <nichoj@gentoo.org>2006-09-13 23:37:26 +0000
commit5e083ff5b5a61f7f0110aa5724e4c2e5d55785c8 (patch)
tree0cb2e1e5d0e0265104188d7d6ed6d3b14775f8bd
parentAdded paludis with minor patch for qualudis. (diff)
downloadnichoj-5e083ff5b5a61f7f0110aa5724e4c2e5d55785c8.tar.gz
nichoj-5e083ff5b5a61f7f0110aa5724e4c2e5d55785c8.tar.bz2
nichoj-5e083ff5b5a61f7f0110aa5724e4c2e5d55785c8.zip
Tweaked chroot-execute, to make sure lv gets mounted properly when executing script as non-root.
svn path=/; revision=70
-rwxr-xr-xprojects/chroot-manager/trunk/bin/chroot-execute7
1 files changed, 4 insertions, 3 deletions
diff --git a/projects/chroot-manager/trunk/bin/chroot-execute b/projects/chroot-manager/trunk/bin/chroot-execute
index 8abf7c5..fe3be8c 100755
--- a/projects/chroot-manager/trunk/bin/chroot-execute
+++ b/projects/chroot-manager/trunk/bin/chroot-execute
@@ -20,9 +20,6 @@ source "${CHROOT_PREFIX}/libexec/chroot-manager/chroot-functions.sh"
# Load our settings
source "${CHROOT_PREFIX}/etc/chroot-manager.conf"
-# Initialize the env
-init_chroot_env ${TARGET_CHROOT}
-
# Be smart and use sudo for when we aren't root
sudo=""
if [[ ${UID} != 0 ]]; then
@@ -32,6 +29,10 @@ fi
# Do all sorts of binds all over the place
${sudo} ${CHROOT_PREFIX}/bin/chroot-mount ${TARGET_CHROOT}
+# Initialize the env
+init_chroot_env ${TARGET_CHROOT}
+
+
# Call linux32 if we're going into an x86 chroot
linux32=""
if [[ ${TARGET_CHROOT} =~ x86 ]]; then