From 18149cac0b4b9523ca0a71a982a2bfa1ed2fa018 Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Mon, 24 Mar 2014 15:54:51 +0100 Subject: [vmware, chroot] vmware pseudo-deletions in case workstation is installed in the base system. An explicit warning for chroot.inc's autoexec.bat. --- remote/includes/chroot.inc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'remote/includes/chroot.inc') 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 -- cgit v1.2.3-55-g7522