From 92c9e30eb5fdf77566898a0007a797d7ac3ee348 Mon Sep 17 00:00:00 2001 From: kn Date: Sun, 6 Nov 2022 21:32:54 +0000 Subject: [PATCH] Skip MD post-install bits on upgrades Upgrades are noiser on macppc (and loongson and octeon) than on other architectures because boot firmware changes and/or tips to complete an OpenBSD installation are always printed, even though they are not needed after an upgrade. OK deraadt --- distrib/miniroot/install.sub | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 356f15ba46d..f3883883117 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sub,v 1.1213 2022/10/19 08:24:14 kn Exp $ +# $OpenBSD: install.sub,v 1.1214 2022/11/06 21:32:54 kn Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer @@ -2951,13 +2951,16 @@ __EOT CONGRATULATIONS! Your OpenBSD $MODE has been successfully completed! __EOT - [[ $MODE == install ]] && cat <<__EOT + if [[ $MODE == install ]]; then + cat <<'__EOT' When you login to your new system the first time, please read your mail using the 'mail' command. __EOT - md_congrats + md_congrats + fi + $AI && >/tmp/ai/ai.done } -- 2.20.1