summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorChristian Rößler2014-03-20 17:10:04 +0100
committerChristian Rößler2014-03-20 17:10:04 +0100
commite87e89a9567b2052fd233b5dec964f726c66b0f2 (patch)
treeffe3c231ccde3dc39edbff88ae74fd74c8c2ca7b /remote
parent[setup_target] clean_modules fix (diff)
downloadtm-scripts-e87e89a9567b2052fd233b5dec964f726c66b0f2.tar.gz
tm-scripts-e87e89a9567b2052fd233b5dec964f726c66b0f2.tar.xz
tm-scripts-e87e89a9567b2052fd233b5dec964f726c66b0f2.zip
[chroot.inc] Added parameter to bind-remount
Diffstat (limited to 'remote')
-rw-r--r--remote/includes/chroot.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote/includes/chroot.inc b/remote/includes/chroot.inc
index f0940bba..f6581680 100644
--- a/remote/includes/chroot.inc
+++ b/remote/includes/chroot.inc
@@ -50,8 +50,8 @@ chroot_prepare_dirs() {
chroot_prepare_mounts() {
# first mount / on CHROOT_BINDDIR and remount read-only
- mount -o bind "${CHROOT_LOWERDIR}" "${CHROOT_BINDDIR}" || perror "Could not bind-mount '$CHROOT_LOWERDIR' to '$CHROOT_BINDDIR'."
- mount -o remount,ro "${CHROOT_BINDDIR}" || perror "Could not remount '$CHROOT_BINDDIR' read-only."
+ mount -o bind "${CHROOT_LOWERDIR}" "${CHROOT_BINDDIR}" || perror "Could not bind-mount '$CHROOT_LOWERDIR' to '$CHROOT_BINDDIR'."
+ mount -o remount,ro,bind "${CHROOT_BINDDIR}" || perror "Could not remount '$CHROOT_BINDDIR' read-only."
# check that it really is read-only
[ "x$(mount | grep -E "^/ on ${CHROOT_BINDDIR}" | grep -v '\(.*ro.*\)')" != "x" ] && perror "'${CHROOT_BINDDIR}' is not read-only! Aborting..."