diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2018-07-09 13:45:55 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2018-07-09 13:45:55 +0000 |
commit | 862d08d691decc57721c8a58ef9f7d706247f95b (patch) | |
tree | f5786de306e9309a525de171eb4be40e7c86e80b /distrib/miniroot | |
parent | f1edbce43180067412dde575fa84308c939993c9 (diff) |
Explain in more detail, how select_sets() is involved when the current bsd.rd
is used to download/verify/install a bsd.rd of a new release.
Diffstat (limited to 'distrib/miniroot')
-rw-r--r-- | distrib/miniroot/install.sub | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 54cdb99227d..d420b474eb1 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sub,v 1.1094 2018/07/09 12:32:30 rpe Exp $ +# $OpenBSD: install.sub,v 1.1095 2018/07/09 13:45:54 rpe Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org> @@ -1348,14 +1348,15 @@ sane_install() { done } -# Show list of available sets and let the user select which sets to install. -# Set $resp to list of selected sets. -# -# Parameters: -# -# $1 = available sets -# $2 = already selected sets +# Show list of available sets $1 and let the user select which sets to install. +# Preselect sets listed in $2 and store the list of selected sets in $resp. # +# If the list of available sets only contains kernels during an upgrade, assume +# that the user booted into the installer using the currently installed bsd.rd +# and specified a set location pointing to a new release. In this case, only +# show and preselect bsd.rd. By setting UPGRADE_BSDRD the signify key for the +# next release is used to verify the downloaded bsd.rd, the current bsd.rd is +# preserved and no questions about missing sets are asked. select_sets() { local _avail=$1 _selected=$2 _f _action _col=$COLUMNS local _bsd_rd _no_sets=true |