aboutsummaryrefslogtreecommitdiff
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-12-04 17:14:32 +0000
commit69d1a48b403d588516cf149559169ee5a0d44b67 (patch)
tree325d8ffaa1a9a73eeaf275efde5b9da71bfbf99e
parent809fda77324c5d4949b6490412f43d4bb95e4a94 (diff)
downloadopenembedded-core-69d1a48b403d588516cf149559169ee5a0d44b67.zip
openembedded-core-69d1a48b403d588516cf149559169ee5a0d44b67.tar.gz
openembedded-core-69d1a48b403d588516cf149559169ee5a0d44b67.tar.bz2
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 <ddedrick@lexmark.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster@mvista.com>
-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 58f4a6f..e943707 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+?))/"
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"