[oe-commits] [openembedded-core] 88/122: dhcp: use ${BPN} instead of ${PN} for user

git at git.openembedded.org git at git.openembedded.org
Mon Dec 4 17:26:06 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch rocko
in repository openembedded-core.

commit 69d1a48b403d588516cf149559169ee5a0d44b67
Author: Dan Dedrick <dan.dedrick at gmail.com>
AuthorDate: Tue Nov 7 20:12:20 2017 -0500

    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 at lexmark.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Armin Kuster <akuster at mvista.com>
---
 meta/recipes-connectivity/dhcp/dhcp.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list