From 22ae707afa69d1d0a0496a6dc25a400a9c4404d9 Mon Sep 17 00:00:00 2001 From: Ricardo Salveti Date: Tue, 21 Jul 2020 00:09:26 -0300 Subject: sudo: set with-rundir to /run/sudo Set with-rundir to a known path instead of letting configure decide which is the best folder to store the timestamp files. This is required otherwise it might end up at /sudo, which will cause errors on a ro filesystem. Signed-off-by: Ricardo Salveti Signed-off-by: Richard Purdie --- meta/recipes-extended/sudo/sudo_1.9.1.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta') diff --git a/meta/recipes-extended/sudo/sudo_1.9.1.bb b/meta/recipes-extended/sudo/sudo_1.9.1.bb index aac505af60..d6bc1a9c3a 100644 --- a/meta/recipes-extended/sudo/sudo_1.9.1.bb +++ b/meta/recipes-extended/sudo/sudo_1.9.1.bb @@ -22,6 +22,7 @@ CACHED_CONFIGUREVARS = " \ EXTRA_OECONF += " \ ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-tmpfiles.d=${nonarch_libdir}/tmpfiles.d', '--disable-tmpfiles.d', d)} \ + --with-rundir=/run/sudo \ --with-vardir=/var/lib/sudo \ " @@ -38,7 +39,7 @@ do_install_append () { chmod 0440 ${D}${sysconfdir}/sudoers # Explicitly remove the /sudo directory to avoid QA error - rmdir -p --ignore-fail-on-non-empty ${D}/sudo + rmdir -p --ignore-fail-on-non-empty ${D}/run/sudo } FILES_${PN} += "${nonarch_libdir}/tmpfiles.d" -- cgit 1.2.3-korg