svn commit: r363913 - stable/12/usr.sbin/bsdinstall/scripts

Kyle Evans kevans at FreeBSD.org
Wed Aug 5 14:40:10 UTC 2020


Author: kevans
Date: Wed Aug  5 14:40:09 2020
New Revision: 363913
URL: https://svnweb.freebsd.org/changeset/base/363913

Log:
  MFC r361257: bsdinstall: do a `certctl rehash` upon installation of config
  
  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.

Modified:
  stable/12/usr.sbin/bsdinstall/scripts/config
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/usr.sbin/bsdinstall/scripts/config
==============================================================================
--- stable/12/usr.sbin/bsdinstall/scripts/config	Wed Aug  5 14:38:54 2020	(r363912)
+++ stable/12/usr.sbin/bsdinstall/scripts/config	Wed Aug  5 14:40:09 2020	(r363913)
@@ -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-stable-12 mailing list