diff options
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/miniroot/install.sub | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 1dcb731f751..adc755eb812 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sub,v 1.1120 2019/05/03 20:38:15 krw Exp $ +# $OpenBSD: install.sub,v 1.1121 2019/05/08 15:53:31 florian Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org> @@ -2869,6 +2869,12 @@ do_autoinstall() { # Email autoinstall protocol to root on next boot. prep_root_mail /tmp/ai/ai.log "$(hostname) $AI_MODE log" + if $UU; then + cat <<__EOT >>/mnt/etc/rc.firsttime +[[ ! -e /home/_sysupgrade/keep ]] && rm -f /home/_sysupgrade/* +__EOT + fi + exec reboot } |