summaryrefslogtreecommitdiffstats
path: root/remote/includes
diff options
context:
space:
mode:
authorJonathan Bauer2014-03-24 18:36:04 +0100
committerJonathan Bauer2014-03-24 18:36:04 +0100
commita4d56f70c9e960517cb32d2463e87b554eb483c0 (patch)
tree0ea885ada78465356ae070de033b210927253f5d /remote/includes
parent[dhcpc-busybox] fix bad hostname setting logic (diff)
parent[vmware] vmware.conf.ubuntu added, var REQUIRED_VMWARE_DELETIONS as file/dir (diff)
downloadtm-scripts-a4d56f70c9e960517cb32d2463e87b554eb483c0.tar.gz
tm-scripts-a4d56f70c9e960517cb32d2463e87b554eb483c0.tar.xz
tm-scripts-a4d56f70c9e960517cb32d2463e87b554eb483c0.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/includes')
-rw-r--r--remote/includes/chroot.inc14
1 files changed, 13 insertions, 1 deletions
diff --git a/remote/includes/chroot.inc b/remote/includes/chroot.inc
index fc9738ec..48ad39d3 100644
--- a/remote/includes/chroot.inc
+++ b/remote/includes/chroot.inc
@@ -72,6 +72,18 @@ chroot_gen_autoexec() {
# create the script to be automatically executed.
cat >"${CHROOT_MOUNTDIR}/autoexec.bat"<<-EOF
#!/bin/bash
+ #######################################################
+ # #
+ # Warning! #
+ # #
+ # This file is only meant to be executed within #
+ # the specially chrooted mltk building environment. #
+ # #
+ # Do NOT execute it if you are not sure what you do, #
+ # it may be very harmful if being run in a normal #
+ # system environment! #
+ # #
+ #######################################################
echo "chroot started successfully."
EOF
@@ -128,7 +140,7 @@ chroot_run() {
chroot_gen_autoexec || perror "'chroot_gen_autoexec' failed with $?."
# do the chroot
- exec 0>&8
+ exec 0>&8 # This redirection is used for debugging within a chroot
chroot --userspec root:root "${CHROOT_MOUNTDIR}" /autoexec.bat
local RET=$?
if [ "$RET" -eq 0 ]; then