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

                   
                                         


                      
                     
                                                                

                   
                                                             
 
chroot-exec () {
  export HOME="/root"
  if [ $(mount |grep -c $BROOT_BUILDROOT_PATH/dev) -eq 0 ]; then
    setupBindmounts
  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 aptitude install -y $@
}