summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2014-04-21 23:15:10 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2014-04-21 23:15:10 +0000
commitfdd3e8d48bca388671bdb977b2a4b02a9cfbe0df (patch)
tree395fc3b343b4b80f2e8d40c45cf8cda1b750ad93 /distrib
parente9cbdcece947a3076562ddbb8984f315a6cb6aac (diff)
Avoid a loop during autoinstall in case the path in the responsefile does
not exist. OK halex@ krw@
Diffstat (limited to 'distrib')
-rw-r--r--distrib/miniroot/install.sub3
1 files changed, 2 insertions, 1 deletions
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/)"