diff options
author | 2006-09-13 23:37:26 +0000 | |
---|---|---|
committer | 2006-09-13 23:37:26 +0000 | |
commit | 5e083ff5b5a61f7f0110aa5724e4c2e5d55785c8 (patch) | |
tree | 0cb2e1e5d0e0265104188d7d6ed6d3b14775f8bd | |
parent | Added paludis with minor patch for qualudis. (diff) | |
download | nichoj-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-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 |