summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/dhcp
diff options
context:
space:
mode:
authorDan Dedrick <dan.dedrick@gmail.com>2017-11-07 20:12:20 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-11 12:14:28 +0000
commitff04a94d15671bb5da4e6471eab13697f28c5e30 (patch)
treed884e772b7e94b7a87f74da15d58d13c180e65aa /meta/recipes-connectivity/dhcp
parente4ee5e3021cfbbe80f6f23b5117a14a6ab54fc48 (diff)
downloadpoky-ff04a94d15671bb5da4e6471eab13697f28c5e30.tar.gz
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". (From OE-Core rev: 77375b50e23555c3a2d24f2b41771e4d43c5b026) Signed-off-by: Dan Dedrick <ddedrick@lexmark.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/dhcp')
-rw-r--r--meta/recipes-connectivity/dhcp/dhcp.inc2
1 files changed, 1 insertions, 1 deletions
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<pver>\d+\.\d+\.(\d+?))/"
27inherit autotools systemd useradd update-rc.d 27inherit autotools systemd useradd update-rc.d
28 28
29USERADD_PACKAGES = "${PN}-server" 29USERADD_PACKAGES = "${PN}-server"
30USERADD_PARAM_${PN}-server = "--system --no-create-home --home-dir /var/run/${PN} --shell /bin/false --user-group ${PN}" 30USERADD_PARAM_${PN}-server = "--system --no-create-home --home-dir /var/run/${BPN} --shell /bin/false --user-group ${BPN}"
31 31
32SYSTEMD_PACKAGES = "${PN}-server ${PN}-relay ${PN}-client" 32SYSTEMD_PACKAGES = "${PN}-server ${PN}-relay ${PN}-client"
33SYSTEMD_SERVICE_${PN}-server = "dhcpd.service dhcpd6.service" 33SYSTEMD_SERVICE_${PN}-server = "dhcpd.service dhcpd6.service"