summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2019-05-08 15:53:32 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2019-05-08 15:53:32 +0000
commit55f25d2008114923218c207dfa1e6624675c6406 (patch)
tree762815f0e81dc247d6fa097177b801b8d62de1d2 /distrib
parenteec856603e18dfa9ce32b6bb4b1103d2ed40ade5 (diff)
cleanup after unattended upgrade
tweak & OK kmos, OK semarie
Diffstat (limited to 'distrib')
-rw-r--r--distrib/miniroot/install.sub8
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
}