Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Aug 2020 14:40:09 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r363913 - stable/12/usr.sbin/bsdinstall/scripts
Message-ID:  <202008051440.075Ee9pL001938@repo.freebsd.org>

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



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