Revert "setup-dchroot: create /srv/chroot"
authorHéctor Orón Martínez <zumbi@debian.org>
Mon, 30 Jan 2017 10:55:57 +0000 (11:55 +0100)
committerPeter Palfrader <peter@palfrader.org>
Mon, 30 Jan 2017 10:57:52 +0000 (11:57 +0100)
the point of the check is to make sure we have created /srv/chroot on a
suitable filesystem, as we don't want the scripts to run if we haven't
done all the filesystem setup yet

This reverts commit 47e806d785e3195f855584d0739abb0ee2682c27.

modules/schroot/files/setup-dchroot

index d6275b5..c1350cd 100755 (executable)
@@ -294,7 +294,7 @@ if [ -z "${builddir:-}" ]; then
     fi
   done
 fi
-[ -d "$basedir" ] || mkdir -p "$basedir"
+[ -d "$basedir" ] || die "Error: $basedir does not exist (or is not a directory)."
 [ -d "$builddir" ] || die "Error: $builddir does not exist (or is not a directory)."
 
 target="$basedir/$tuple.tar.gz"