diff options
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 |
