diff options
author | Colin Watson <cjwatson@debian.org> | 2007-10-19 13:45:48 (GMT) |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2007-10-19 13:45:48 (GMT) |
commit | f8ba662779476396f7bf58e213c5995a8f104266 (patch) | |
tree | 3026eb3f3533fdf66ff5c30fe5607aff5580ee77 /debootstrap | |
parent | c702ea3582aecfe6d164092bfbebdd0a08226b8e (diff) | |
download | debootstrap-f8ba662779476396f7bf58e213c5995a8f104266.zip debootstrap-f8ba662779476396f7bf58e213c5995a8f104266.tar.gz debootstrap-f8ba662779476396f7bf58e213c5995a8f104266.tar.bz2 |
* Emit an error if we cannot create working devices or executables on the
target (based on work by Bastian Kleineidam; closes: #233798).
r49822
Diffstat (limited to 'debootstrap')
-rwxr-xr-x | debootstrap | 7 |
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" |