summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2014-02-27 12:11:24 +0100
committerJonathan Bauer2014-02-27 12:11:24 +0100
commit9880f5f77f19932428272a4b6da6a9e46eecf974 (patch)
treeee8370722c8ba82e4d019c51abd221b38818548a
parentMerge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff)
downloadtm-scripts-9880f5f77f19932428272a4b6da6a9e46eecf974.tar.gz
tm-scripts-9880f5f77f19932428272a4b6da6a9e46eecf974.tar.xz
tm-scripts-9880f5f77f19932428272a4b6da6a9e46eecf974.zip
added example usage
-rw-r--r--remote/includes/chroot.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/remote/includes/chroot.inc b/remote/includes/chroot.inc
index 0e95417c..3485ce63 100644
--- a/remote/includes/chroot.inc
+++ b/remote/includes/chroot.inc
@@ -92,7 +92,12 @@ chroot_handle_whiteouts() {
# Main function to be called from the outside
# Usage:
-# chroot_run <build_dir>
+# chroot_run <build_dir> < <code_to_exec_in_chroot>
+#
+# Example:
+# chroot_run /tmp/chroot_build <<-EOF
+# echo "This will be executed inside the chroot"
+# EOF
#
# It will run:
# - chroot_prepare