Skip to content

Commit

Permalink
base: install pfrule.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Nov 13, 2024
1 parent 7ad0f89 commit f9873dd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions provision/base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ EO_MAKE_CONF
configure_fstab() {
local _sub_dir=${1:-""}
local _etc_path="$BASE_MNT/${_sub_dir}etc"
if [ ! -d "$_etc_path" ]; then
mkdir -p "$_etc_path"
fi
if [ ! -d "$_etc_path" ]; then mkdir -p "$_etc_path"; fi

tee "$_etc_path/fstab" <<EO_FSTAB
# Device Mountpoint FStype Options Dump Pass#
Expand All @@ -192,9 +190,7 @@ EO_FSTAB

configure_base()
{
if [ ! -d "$BASE_MNT/usr/ports" ]; then
mkdir "$BASE_MNT/usr/ports"
fi
if [ ! -d "$BASE_MNT/usr/ports" ]; then mkdir "$BASE_MNT/usr/ports"; fi

tell_status "adding base jail resolv.conf"
cp /etc/resolv.conf "$BASE_MNT/etc"
Expand All @@ -205,6 +201,8 @@ configure_base()
tell_status "installing $BASE_MNT/etc/hosts"
cp /etc/hosts "$BASE_MNT/etc"

install_pfrule

configure_make_conf

tell_status "adding base rc.conf settings"
Expand Down

0 comments on commit f9873dd

Please sign in to comment.