Browse Source

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 13 years ago
parent
commit
b74738be0e
1 changed files with 2 additions and 2 deletions
  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
     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
 
@@ -416,7 +416,7 @@ setup-vbootstrap-rpm(){
     [ -d ${BUILD_ROOT} ] || Build
     ## setarch ix86 if ix86 chroot on x86_64 host
     [ $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.)