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

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