summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--distrib/miniroot/install.sub8
1 files changed, 5 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 0f4fb64229c..3e08a41c1a8 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/ksh
-# $OpenBSD: install.sub,v 1.1110 2019/02/11 17:51:53 deraadt Exp $
+# $OpenBSD: install.sub,v 1.1111 2019/03/02 17:33:18 tb Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
@@ -1640,6 +1640,10 @@ install_files() {
return
fi
+ if [[ $MODE == upgrade ]] && isin base$VERSION.tgz $_get_sets; then
+ rm -f /mnt/usr/share/relink/usr/lib/*
+ fi
+
# Install the set files.
for _f in $_get_sets; do
_fsrc="$_src/$_f"
@@ -3169,8 +3173,6 @@ do_upgrade() {
# Ensure that previous installer choices (e.g. method) are available.
wait_cgiinfo
- rm -f /mnt/usr/share/relink/usr/lib/*
-
# Ask the user for locations, and install whatever sets the user
# selected.
install_sets