diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2017-03-10 17:40:27 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2017-03-10 17:40:27 +0000 |
commit | 41fae29d925dfd750875566cd602a958a1535094 (patch) | |
tree | aadfdf946c7ccf0869cf4c28ac957f4e7f3ac642 /distrib/miniroot/install.sub | |
parent | b533c334a6092787706df52c97230e880fa402ab (diff) |
Always create the installurl(5) file during installation and upgrade
if it does not yet exist. Before it was created only when a mirror
server was used.
suggested by deraadt@
OK halex@ tb@
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 |