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



                                                         
                                  





                                                         
                                                      
 
chroot-exec () {
  if [ $(mount |grep -c $buildrootpath/dev) -eq 0 ]; then
    setupBindmounts
  fi
  chroot $buildrootpath linux32 $@
}

chroot-aptinstall () {
  if [ $(mount |grep -c $buildrootpath/dev) -eq 0 ]; then
    setupBindmounts
  fi
  chroot $buildrootpath linux32 aptitude install -y $@
}