Module Name: src
Committed By: riastradh
Date: Thu Sep 7 16:38:08 UTC 2023
Modified Files:
src/usr.sbin/sysinst: util.c
Log Message:
sysinst(1): Run `certctl rehash' on fresh installs.
It has come to my attention that sysinst does not, in fact, run
postinstall(8) post-install -- only post-upgrade.
Perhaps we should change this so that postinstall serves the purpose
it says on the box -- make postinstall mandatory for new
installations.
XXX pullup-10
To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/usr.sbin/sysinst/util.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/sysinst/util.c
diff -u src/usr.sbin/sysinst/util.c:1.72 src/usr.sbin/sysinst/util.c:1.73
--- src/usr.sbin/sysinst/util.c:1.72 Sat Jun 24 05:25:04 2023
+++ src/usr.sbin/sysinst/util.c Thu Sep 7 16:38:08 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: util.c,v 1.72 2023/06/24 05:25:04 msaitoh Exp $ */
+/* $NetBSD: util.c,v 1.73 2023/09/07 16:38:08 riastradh Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -1524,8 +1524,13 @@ get_and_unpack_sets(int update, msg setu
}
/* Configure the system */
- if (set_status[SET_BASE] & SET_INSTALLED)
+ if (set_status[SET_BASE] & SET_INSTALLED) {
run_makedev();
+ if (!update) {
+ run_program(RUN_CHROOT|RUN_DISPLAY,
+ "/usr/sbin/certctl rehash");
+ }
+ }
if (!update) {
struct stat sb1, sb2;