diff options
| author | Christian Rößler | 2014-03-24 15:54:51 +0100 |
|---|---|---|
| committer | Christian Rößler | 2014-03-24 15:54:51 +0100 |
| commit | 18149cac0b4b9523ca0a71a982a2bfa1ed2fa018 (patch) | |
| tree | d183b1a1f4e9373875880537549993350826be81 /remote/includes/chroot.inc | |
| parent | [vmware.build] Ahem, forgot to re-comment debugging bash (diff) | |
| download | tm-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/chroot.inc')
| -rw-r--r-- | remote/includes/chroot.inc | 14 |
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 |
