summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2017-03-01 20:48:13 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2017-03-01 20:48:13 +0000
commitc29833689cb5eaf17fcc28d22e62798dfbc5da61 (patch)
treee2af99efe8ba6c94a8fdd596c89a86ae6e107513
parentd9060a0edfc9f3b56ccaf39f0510c8093fe1fe35 (diff)
Comments ...
-rw-r--r--distrib/miniroot/install.sub9
1 files changed, 6 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 5c796c83d22..46af0f97556 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/ksh
-# $OpenBSD: install.sub,v 1.979 2017/02/28 19:42:38 rpe Exp $
+# $OpenBSD: install.sub,v 1.980 2017/03/01 20:48:12 rpe Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
@@ -2570,7 +2570,7 @@ finish_up() {
[[ -x /mnt/$MODE.site ]] && chroot /mnt /$MODE.site
# In case this is a softraid device, make sure all underlying
- # device nodes exist.
+ # device nodes exist before installing boot-blocks on disk.
make_dev $(bioctl $ROOTDISK 2>/dev/null | sed -n 's/.*<\(.*\)>$/\1/p')
md_installboot $ROOTDISK
@@ -2580,14 +2580,17 @@ finish_up() {
mv /mnt/bsd.mp /mnt/bsd
fi
- # Ensure that fw_update is run on reboot.
+ # Ensure that sysmerge in batch mode is run on reboot.
[[ $MODE == upgrade ]] &&
echo "/usr/sbin/sysmerge -b" >>/mnt/etc/rc.sysmerge
+
+ # Ensure that fw_update is run on reboot.
echo "/usr/sbin/fw_update -v" >>/mnt/etc/rc.firsttime
# Email installer questions and their answers to root on next boot.
prep_root_mail /tmp/i/$MODE.resp "$(hostname) $MODE response file"
+ # Store entropy for the next boot.
store_random
# Pat on the back.