diff options
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r-- | distrib/miniroot/install.sub | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index d24dea2454f..61cf0047391 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sub,v 1.982 2017/03/06 22:10:14 rpe Exp $ +# $OpenBSD: install.sub,v 1.983 2017/03/10 17:40:26 rpe Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org> @@ -2541,9 +2541,8 @@ finish_up() { done </mnt/etc/fstab fi - # Create /etc/installurl with the mirror used during install or upgrade - # if it does not yet exist. - if [[ -n $INSTALL_MIRROR && ! -f /mnt/etc/installurl ]]; then + # Create /etc/installurl if it does not yet exist. + if [[ -n $INSTALL_URL && ! -f /mnt/etc/installurl ]]; then echo "$INSTALL_URL" >/mnt/etc/installurl fi |