Explorar o código

update vbuilder.sh.in: add /bin/sh option -l at __chroot_sh

git-svn-id: http://trac.vinelinux.org/repos/projects/vbootstrap/trunk@2468 ec354946-7b23-47d6-9f5a-488ba84defc7
Takemikaduchi %!s(int64=14) %!d(string=hai) anos
pai
achega
b74738be0e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      vbuilder.sh.in

+ 2 - 2
vbuilder.sh.in

@@ -402,7 +402,7 @@ setup-vbootstrap(){
     EXTERNAL_ARCHIVES_DIR=${CACHE_DIR}/${VERSION}/apt/archives
     EXTERNAL_ARCHIVES_DIR=${CACHE_DIR}/${VERSION}/apt/archives
     VBUILDER_LOG=${BUILD_ROOT}/var/log/vbuilder.log
     VBUILDER_LOG=${BUILD_ROOT}/var/log/vbuilder.log
 
 
-    __chroot_sh="/usr/sbin/chroot ${BUILD_ROOT} /bin/sh -c"
+    __chroot_sh="/usr/sbin/chroot ${BUILD_ROOT} /bin/sh -c -l"
 
 
     mkdir -p $VBOOTSTRAP_DIR
     mkdir -p $VBOOTSTRAP_DIR
 
 
@@ -416,7 +416,7 @@ setup-vbootstrap-rpm(){
     [ -d ${BUILD_ROOT} ] || Build
     [ -d ${BUILD_ROOT} ] || Build
     ## setarch ix86 if ix86 chroot on x86_64 host
     ## setarch ix86 if ix86 chroot on x86_64 host
     [ $with_ix86_on_x86_64 -eq 1 ] && \
     [ $with_ix86_on_x86_64 -eq 1 ] && \
-	__chroot_sh="/usr/sbin/chroot ${BUILD_ROOT} setarch ${VARCH} /bin/sh -c"
+	__chroot_sh="/usr/sbin/chroot ${BUILD_ROOT} setarch ${VARCH} /bin/sh -c -l"
 
 
     DIST_RELEASE=$(cat ${BUILD_ROOT}/etc/vine-release | cut -f3 -d" " | cut -f1 -d.)
     DIST_RELEASE=$(cat ${BUILD_ROOT}/etc/vine-release | cut -f3 -d" " | cut -f1 -d.)