From b7ec47764087628730af1fcfb8bfeea470d81c72 Mon Sep 17 00:00:00 2001 From: Andreas Fenkart Date: Thu, 17 Apr 2025 15:44:40 +0200 Subject: [PATCH] chrony: fix /sbin/nologin path in useradd cmdline /sbin/nologin instead of /bin/nologin Signed-off-by: Andreas Fenkart Signed-off-by: Khem Raj --- meta-networking/recipes-support/chrony/chrony_4.6.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-networking/recipes-support/chrony/chrony_4.6.1.bb b/meta-networking/recipes-support/chrony/chrony_4.6.1.bb index 83dee9143b..345c29af56 100644 --- a/meta-networking/recipes-support/chrony/chrony_4.6.1.bb +++ b/meta-networking/recipes-support/chrony/chrony_4.6.1.bb @@ -50,7 +50,7 @@ inherit update-rc.d systemd pkgconfig # Add chronyd user if privdrop packageconfig is selected inherit ${@bb.utils.contains('PACKAGECONFIG', 'privdrop', 'useradd', '', 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 /sbin/nologin chronyd;', '', d)}" # Configuration options: # - Security-related: