]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r365829, r365837, r365852: certctl rehash upon install/distribute
authorKyle Evans <kevans@FreeBSD.org>
Tue, 22 Sep 2020 02:14:55 +0000 (02:14 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Tue, 22 Sep 2020 02:14:55 +0000 (02:14 +0000)
commit6c97d5ec6c6c574a1c4d2ecc5193760e6adbe151
treee94c33ec7889014b081366821c266dfbed56d32e
parent92f2274d03c8dcc07c58f6521832ecb8e963ff05
MFC r365829, r365837, r365852: certctl rehash upon install/distribute

r365829:
installworld: run `certctl rehash` after installation completes

This was originally introduced back in r360833, and subsequently reverted
because it was broken for -DNO_ROOT builds and it may not have been the
correct place for it.

While debatably this may still not be 'the correct place,' it's much cleaner
than scattering rehashes all throughout the tree. brooks has fixed the issue
with -DNO_ROOT by properly writing to the METALOG in r361397.

Do note that this is different than what was originally committed; brooks
had revisions in D24932 that made it actually use the revised unprivileged
mode and write to METALOG, along with being a little more friendly to
foreign crossbuilds and just using the certctl in-tree.

With this change, I believe we should now have a populated /etc/ssl/certs in
the VM images.

r365837:
Promote the installworld `certctl rehash` to distributeworld

Contrary to my belief, installworld is not sufficient for getting certs
installed into VM images. Promote the rehash to both installworld and
distributeworld (notably: not stageworld) and rehash the base distdir so we
end up with /etc/ssl/certs populated in the base dist archive. A future
commit will remove the rehash from bsdinstall, which doesn't really need to
happen if they're installed into base.txz.

While here, fix a minor typo: s/CERTCLTFLAGS/CERTCTLFLAGS/

r365852:
Revert r361257: bsdinstall: do a `certctl rehash` upon installation [...]

As of r365829, any given base distribution set will now include the /etc/ssl
symlinks that this rehash would've otherwise installed. This extra step is
no longer required.
Makefile.inc1
usr.sbin/bsdinstall/scripts/config