We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 395db90 + 00072a1 commit 1880443Copy full SHA for 1880443
mk/base-jail.mk
@@ -1,5 +1,6 @@
1
BASE_WORKDIR != reggae get-config BASE_WORKDIR
2
PKG_PROXY != reggae get-config PKG_PROXY
3
+DHCP ?= dhclient
4
MKJAIL_OPTIONS =
5
6
.if exists(${EXTRA_FSTAB})
@@ -75,6 +76,10 @@ setup:
75
76
.endif
77
.if !exists(${BASE_WORKDIR}/${SERVICE})
78
@sudo env PRESTART="${PRESTART}" POSTSTART="${POSTSTART}" PRESTOP="${PRESTOP}" POSTSTOP="${POSTSTOP}" OS_VERSION="${VERSION}" reggae mkjail ${MKJAIL_OPTIONS} ${SERVICE}
79
+.if ${DHCP} == "dhcpcd"
80
+ @sudo chroot ${BASE_WORKDIR}/${SERVICE} pkg install -y dhcpcd
81
+ @echo dhclient_program="/usr/local/sbin/dhcpcd" | sudo tee -a ${BASE_WORKDIR}/${SERVICE}/etc/rc.conf >/dev/null
82
+.endif
83
84
.if ${DEVEL_MODE} == "YES"
85
-@sudo mount -t nullfs ${PWD} ${BASE_WORKDIR}/${SERVICE}/usr/src >/dev/null 2>&1
0 commit comments