From: Dan Dedrick Date: Wed, 8 Nov 2017 01:12:20 +0000 (-0500) Subject: dhcp: use ${BPN} instead of ${PN} for user X-Git-Tag: uninative-1.8~1118 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=77375b50e23555c3a2d24f2b41771e4d43c5b026;p=openembedded-core.git dhcp: use ${BPN} instead of ${PN} for user ${PN} will include additional prefixes, such as lib32-, which are not actually a part of the user that is being added. This was creating an unused user and possibly missing the actually intended user. By using ${BPN} this will remove all additional extra information and consistently be "dhcp". Signed-off-by: Dan Dedrick Signed-off-by: Ross Burton --- diff --git a/meta/recipes-connectivity/dhcp/dhcp.inc b/meta/recipes-connectivity/dhcp/dhcp.inc index 58f4a6fd24..e94370786a 100644 --- a/meta/recipes-connectivity/dhcp/dhcp.inc +++ b/meta/recipes-connectivity/dhcp/dhcp.inc @@ -27,7 +27,7 @@ UPSTREAM_CHECK_REGEX = "(?P\d+\.\d+\.(\d+?))/" inherit autotools systemd useradd update-rc.d USERADD_PACKAGES = "${PN}-server" -USERADD_PARAM_${PN}-server = "--system --no-create-home --home-dir /var/run/${PN} --shell /bin/false --user-group ${PN}" +USERADD_PARAM_${PN}-server = "--system --no-create-home --home-dir /var/run/${BPN} --shell /bin/false --user-group ${BPN}" SYSTEMD_PACKAGES = "${PN}-server ${PN}-relay ${PN}-client" SYSTEMD_SERVICE_${PN}-server = "dhcpd.service dhcpd6.service"