diff options
-rwxr-xr-x | projects/chroot-manager/trunk/bin/chroot-execute | 7 |
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 |