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 $@ }