pkg/build: fix loader.conf modification in FreeBSD image build script

The loader.conf we want to modify is in the mount rooted at $tmpdir.
This commit is contained in:
Mark Johnston 2020-04-13 09:51:24 -04:00 committed by Dmitry Vyukov
parent a517e13956
commit dc4b93e773

View File

@ -68,7 +68,7 @@ sudo mount /dev/${md}p${partn} $tmpdir
sudo MAKEOBJDIRPREFIX=%s make -C %s installkernel KERNCONF=%s DESTDIR=$tmpdir sudo MAKEOBJDIRPREFIX=%s make -C %s installkernel KERNCONF=%s DESTDIR=$tmpdir
echo 'pf_load="YES"' | sudo tee -a /boot/loader.conf echo 'pf_load="YES"' | sudo tee -a ${tmpdir}/boot/loader.conf
sudo umount $tmpdir sudo umount $tmpdir
sudo mdconfig -d -u ${md#md} sudo mdconfig -d -u ${md#md}