pkg/build: add configuration to /boot/loader.conf.local on FreeBSD

With commit 7ba05d2dd657a3306d4729982dda87273334e850 we always write a
fresh loader.conf on each build, but this clobbers any pre-existing
settings that may be required for a given setup.  This went unnoticed by
me for a while since bhyve requires no additional preconfiguration, but
clearly syzbot is affected.  On the other hand, before that commit we
were appending the same lines upon each build.  Use
/boot/loader.conf.local instead.
This commit is contained in:
Mark Johnston 2020-08-17 19:09:18 -04:00 committed by Dmitry Vyukov
parent 9c6fc8db23
commit 635f68f680

View File

@ -72,7 +72,7 @@ sudo mount /dev/${md}p${partn} $tmpdir
sudo MAKEOBJDIRPREFIX=%s make -C %s installkernel WITH_EXTRA_TCP_STACKS= KERNCONF=%s DESTDIR=$tmpdir
cat | sudo tee ${tmpdir}/boot/loader.conf <<__EOF__
cat | sudo tee ${tmpdir}/boot/loader.conf.local <<__EOF__
ipsec_load="YES"
pf_load="YES"
sctp_load="YES"