summaryrefslogblamecommitdiffstats
path: root/inc/chroot-functions.inc.sh
blob: 383d31d44420c57555bd76a1a4f90b80b3490613 (plain) (tree)
1
2
3
4
5
6
7
8
                
                     
                                                                
                   

                                                     
    
                                         


                      
                     
                                                                

                   
                                                            
 
chroot-exec () {
  export HOME="/root"
  if [ $(mount |grep -c $BROOT_BUILDROOT_PATH/dev) -eq 0 ]; then
    setupBindmounts
  else 
    echo "found existing mounts skipping mount setup"
  fi
  chroot $BROOT_BUILDROOT_PATH linux32 $@
}

chroot-aptinstall () {
  export HOME="/root"
  if [ $(mount |grep -c $BROOT_BUILDROOT_PATH/dev) -eq 0 ]; then
    setupBindmounts
  fi
  chroot $BROOT_BUILDROOT_PATH linux32 apt-get install -y $@
}