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