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
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to