From 0705f60b819bc26b46e3afc9568e350785add860 Mon Sep 17 00:00:00 2001 From: Kai Kang Date: Tue, 15 Jun 2021 16:50:30 +0800 Subject: [PATCH] sssd: set pid path with /run /var/run is deprecated and set pid path with /run to store pid files for the SSSD. Signed-off-by: Kai Kang Signed-off-by: Armin Kuster --- recipes-security/sssd/sssd_2.5.0.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes-security/sssd/sssd_2.5.0.bb b/recipes-security/sssd/sssd_2.5.0.bb index 4c92519..c699527 100644 --- a/recipes-security/sssd/sssd_2.5.0.bb +++ b/recipes-security/sssd/sssd_2.5.0.bb @@ -63,6 +63,7 @@ EXTRA_OECONF += " \ --without-python2-bindings \ --without-secrets \ --with-xml-catalog-path=${STAGING_ETCDIR_NATIVE}/xml/catalog \ + --with-pid-path=/run \ " do_configure_prepend() { @@ -88,8 +89,8 @@ do_install () { echo "d /var/log/sssd 0750 - - - -" > ${D}${sysconfdir}/tmpfiles.d/sss.conf fi - # Remove /var/run as it is created on startup - rm -rf ${D}${localstatedir}/run + # Remove /run as it is created on startup + rm -rf ${D}/run rm -f ${D}${systemd_system_unitdir}/sssd-secrets.* }