summaryrefslogtreecommitdiffstats
path: root/debootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'debootstrap')
-rwxr-xr-xdebootstrap7
1 files changed, 7 insertions, 0 deletions
diff --git a/debootstrap b/debootstrap
index 7d1bb5a..aa02dca 100755
--- a/debootstrap
+++ b/debootstrap
@@ -351,6 +351,13 @@ fi
###########################################################################
+# Ensure that we can create working devices and executables on the target.
+if ! check_sane_mount "$TARGET"; then
+ error 1 NOEXEC "Cannot install into target '$TARGET' mounted with noexec or nodev"
+fi
+
+###########################################################################
+
if [ "$UNPACK_TARBALL" ]; then
if [ "${UNPACK_TARBALL#/}" = "$UNPACK_TARBALL" ]; then
error 1 TARPATH "Tarball must be given a complete path"