Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 May 2020 15:19:39 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r361257 - head/usr.sbin/bsdinstall/scripts
Message-ID:  <202005191519.04JFJd7f071105@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005191519.04JFJd7f071105>