summaryrefslogtreecommitdiffstats
path: root/inc/chroot-functions.inc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'inc/chroot-functions.inc.sh')
-rw-r--r--inc/chroot-functions.inc.sh13
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 $@
+}