summaryrefslogtreecommitdiffstats
path: root/inc/chroot-functions.inc.sh
blob: 5693a5458d450dc34abc9ef7da5f84d0740c3210 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
chroot-exec () {
  if [ $(mount |grep -c $BROOT_BUILDROOT_PATH/dev) -eq 0 ]; then
    setupBindmounts
  fi
  chroot $BROOT_BUILDROOT_PATH linux32 $@
}

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