summaryrefslogtreecommitdiffstats
path: root/remote/includes
diff options
context:
space:
mode:
authorChristian Rößler2014-03-21 15:01:32 +0100
committerChristian Rößler2014-03-21 15:01:32 +0100
commit52c75b7e40c9655495418c0c776bafefd75bc458 (patch)
tree9e039681bdae94718afaca510f53a46d91908cfb /remote/includes
parent[chroot.inc] Added parameter to bind-remount (diff)
downloadtm-scripts-52c75b7e40c9655495418c0c776bafefd75bc458.tar.gz
tm-scripts-52c75b7e40c9655495418c0c776bafefd75bc458.tar.xz
tm-scripts-52c75b7e40c9655495418c0c776bafefd75bc458.zip
[logging.inc, chroot.inc] Some redirections for debugging within a chroot
Diffstat (limited to 'remote/includes')
-rw-r--r--remote/includes/chroot.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/remote/includes/chroot.inc b/remote/includes/chroot.inc
index f6581680..fc9738ec 100644
--- a/remote/includes/chroot.inc
+++ b/remote/includes/chroot.inc
@@ -72,7 +72,7 @@ chroot_gen_autoexec() {
# create the script to be automatically executed.
cat >"${CHROOT_MOUNTDIR}/autoexec.bat"<<-EOF
#!/bin/bash
- echo "chroot success."
+ echo "chroot started successfully."
EOF
# dump the piped input to it
@@ -128,6 +128,7 @@ chroot_run() {
chroot_gen_autoexec || perror "'chroot_gen_autoexec' failed with $?."
# do the chroot
+ exec 0>&8
chroot --userspec root:root "${CHROOT_MOUNTDIR}" /autoexec.bat
local RET=$?
if [ "$RET" -eq 0 ]; then