svn commit: r361257 - head/usr.sbin/bsdinstall/scripts
Kyle Evans
kevans at FreeBSD.org
Tue May 19 15:19:39 UTC 2020
Author: kevans
Date: Tue May 19 15:19:39 2020
New Revision: 361257
URL: https://svnweb.freebsd.org/changeset/base/361257
Log:
bsdinstall: do a `certctl rehash` upon installation of configuration
If certctl is installed on the system we're configuring, do a certctl
rehash.
Note that certctl may not be present if the world we've installed was built
either WITHOUT_OPENSSL or WITHOUT_CAROOT. In this scenario, we don't
currently see if the host has a certctl as this may be an indication that
the system *shouldn't* have certs installed into /etc/ssl.
Reviewed by: allanjude, dteske
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D24640
Modified:
head/usr.sbin/bsdinstall/scripts/config
Modified: head/usr.sbin/bsdinstall/scripts/config
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/config Tue May 19 14:42:09 2020 (r361256)
+++ head/usr.sbin/bsdinstall/scripts/config Tue May 19 15:19:39 2020 (r361257)
@@ -55,6 +55,9 @@ cp $BSDINSTALL_TMPBOOT/* $BSDINSTALL_CHROOT/boot
# Set up other things from installed config
chroot $BSDINSTALL_CHROOT /usr/bin/newaliases > /dev/null 2>&1
+if [ -x $BSDINSTALL_CHROOT/usr/sbin/certctl ]; then
+ chroot $BSDINSTALL_CHROOT /usr/sbin/certctl rehash
+fi
exit 0
More information about the svn-src-all
mailing list