#!/bin/ksh
-# $OpenBSD: install.sub,v 1.1099 2018/08/19 20:01:38 tb Exp $
+# $OpenBSD: install.sub,v 1.1100 2018/08/19 20:35:51 tb Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
fi
# Create /etc/installurl if it does not yet exist.
- if [[ ! -f /mnt/etc/installurl ]]; then
- echo "${INSTALL_URL:-https://cdn.openbsd.org/pub/OpenBSD}" \
- >/mnt/etc/installurl
+ if [[ -n $INSTALL_URL && ! -f /mnt/etc/installurl ]]; then
+ echo "$INSTALL_URL" >/mnt/etc/installurl
fi
echo -n "Making all device nodes..."