From 5e083ff5b5a61f7f0110aa5724e4c2e5d55785c8 Mon Sep 17 00:00:00 2001 From: Joshua Nichols Date: Wed, 13 Sep 2006 23:37:26 +0000 Subject: Tweaked chroot-execute, to make sure lv gets mounted properly when executing script as non-root. svn path=/; revision=70 --- projects/chroot-manager/trunk/bin/chroot-execute | 7 ++++--- 1 file 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 -- cgit v1.2.3-65-gdbad