From: rpe Date: Mon, 21 Apr 2014 23:15:09 +0000 (+0000) Subject: Avoid a loop during autoinstall in case the path in the responsefile does X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2f7776be544b995822620d263a2da47a4e1102e8;p=openbsd Avoid a loop during autoinstall in case the path in the responsefile does not exist. OK halex@ krw@ --- diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index baa26896e7d..16cce3b2aa5 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.766 2014/04/21 19:05:40 rpe Exp $ +# $OpenBSD: install.sub,v 1.767 2014/04/21 23:15:09 rpe Exp $ # # Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback # All rights reserved. @@ -1448,6 +1448,7 @@ install_mounted_fs() { # Accept a valid absolute path. [[ -d /$resp ]] && { _dir=/$resp; break; } echo "The directory '$resp' does not exist." + $auto && exit 1 done install_files "file://$_dir" "$(ls $_dir/)"