pkg/build: always truncate loader.conf on FreeBSD

Otherwise we append the same lines to the file upon each build.
This commit is contained in:
Mark Johnston 2020-07-10 14:59:24 -04:00 committed by Dmitry Vyukov
parent ca5272b763
commit 7ba05d2dd6

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 sudo MAKEOBJDIRPREFIX=%s make -C %s installkernel WITH_EXTRA_TCP_STACKS= KERNCONF=%s DESTDIR=$tmpdir
cat | sudo tee -a ${tmpdir}/boot/loader.conf <<__EOF__ cat | sudo tee ${tmpdir}/boot/loader.conf <<__EOF__
ipsec_load="YES" ipsec_load="YES"
pf_load="YES" pf_load="YES"
sctp_load="YES" sctp_load="YES"