From: Héctor Orón Martínez Date: Mon, 30 Jan 2017 10:55:57 +0000 (+0100) Subject: Revert "setup-dchroot: create /srv/chroot" X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=6b0125678b30fc91ffbe5ff846e0c9ac0dee6824;p=mirror%2Fdsa-puppet.git Revert "setup-dchroot: create /srv/chroot" 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. --- diff --git a/modules/schroot/files/setup-dchroot b/modules/schroot/files/setup-dchroot index d6275b55d..c1350cdbf 100755 --- a/modules/schroot/files/setup-dchroot +++ b/modules/schroot/files/setup-dchroot @@ -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"