summaryrefslogtreecommitdiffstats
path: root/remote/includes
diff options
context:
space:
mode:
authorChristian Rößler2014-03-24 15:54:51 +0100
committerChristian Rößler2014-03-24 15:54:51 +0100
commit18149cac0b4b9523ca0a71a982a2bfa1ed2fa018 (patch)
treed183b1a1f4e9373875880537549993350826be81 /remote/includes
parent[vmware.build] Ahem, forgot to re-comment debugging bash (diff)
downloadtm-scripts-18149cac0b4b9523ca0a71a982a2bfa1ed2fa018.tar.gz
tm-scripts-18149cac0b4b9523ca0a71a982a2bfa1ed2fa018.tar.xz
tm-scripts-18149cac0b4b9523ca0a71a982a2bfa1ed2fa018.zip
[vmware, chroot] vmware pseudo-deletions in case workstation is installed in
the base system. An explicit warning for chroot.inc's autoexec.bat.
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