mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-27 16:01:45 +00:00
chrony: use inherit_defer for conditional inherit of useradd
[ Upstream commit 63df976d8eec0fa714e8da30f4333f8af23c57d3 ] conditionnal inherit is missed when PACKAGECONFIG privdrop is activated after this inherit, eg in .bbappend. Signed-off-by: Andreas Fenkart <afenkart@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
parent
9e4e5951fa
commit
8de6879654
@ -48,7 +48,7 @@ DEPENDS = "pps-tools"
|
|||||||
inherit update-rc.d systemd pkgconfig
|
inherit update-rc.d systemd pkgconfig
|
||||||
|
|
||||||
# Add chronyd user if privdrop packageconfig is selected
|
# Add chronyd user if privdrop packageconfig is selected
|
||||||
inherit ${@bb.utils.contains('PACKAGECONFIG', 'privdrop', 'useradd', '', d)}
|
inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'privdrop', 'useradd', '', d)}
|
||||||
USERADD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '${PN}', '', d)}"
|
USERADD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '${PN}', '', d)}"
|
||||||
USERADD_PARAM:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '--system -d / -M --shell /bin/nologin chronyd;', '', d)}"
|
USERADD_PARAM:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '--system -d / -M --shell /bin/nologin chronyd;', '', d)}"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user