diff options
Diffstat (limited to 'inc/chroot-functions.inc.sh')
-rw-r--r-- | inc/chroot-functions.inc.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/inc/chroot-functions.inc.sh b/inc/chroot-functions.inc.sh new file mode 100644 index 0000000..2578e15 --- /dev/null +++ b/inc/chroot-functions.inc.sh @@ -0,0 +1,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 $@ +} |