summaryrefslogtreecommitdiffstats
path: root/remote/includes/chroot.inc
diff options
context:
space:
mode:
authorSimon Rettberg2014-07-27 00:10:16 +0200
committerSimon Rettberg2014-07-27 00:10:16 +0200
commit62d78729a32dd136feddede21a5dc6e9c3dbe2d7 (patch)
treedccd7c833bb33825c45922397dd84d629d25f05f /remote/includes/chroot.inc
parent[rfs-s31] fix busybox copying v2 (diff)
downloadtm-scripts-62d78729a32dd136feddede21a5dc6e9c3dbe2d7.tar.gz
tm-scripts-62d78729a32dd136feddede21a5dc6e9c3dbe2d7.tar.xz
tm-scripts-62d78729a32dd136feddede21a5dc6e9c3dbe2d7.zip
helpers/includes now should include an __init function and not just do stuff right away when being sourced
Diffstat (limited to 'remote/includes/chroot.inc')
-rw-r--r--remote/includes/chroot.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/remote/includes/chroot.inc b/remote/includes/chroot.inc
index 4a8a350f..146d7e7e 100644
--- a/remote/includes/chroot.inc
+++ b/remote/includes/chroot.inc
@@ -15,11 +15,11 @@
#
# -----------------------------------------------------------------------------
-CHROOT_TEMPDIR="${ROOT_DIR}/remote/chroot.tmp"
-CHROOT_MOUNTDIR="${CHROOT_TEMPDIR}/rootmount"
-CHROOT_BINDDIR="${CHROOT_TEMPDIR}/rootbind"
-CHROOT_LOWERDIR="/"
-CHROOT_BINDMOUNTS="/dev /proc /sys /run"
+declare -rg CHROOT_TEMPDIR="${ROOT_DIR}/remote/chroot.tmp"
+declare -rg CHROOT_MOUNTDIR="${CHROOT_TEMPDIR}/rootmount"
+declare -rg CHROOT_BINDDIR="${CHROOT_TEMPDIR}/rootbind"
+declare -rg CHROOT_LOWERDIR="/"
+declare -rg CHROOT_BINDMOUNTS="/dev /proc /sys /run"
# Helper function to setup the directory structure
chroot_prepare_dirs() {