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 <[email protected]> --- meta/recipes-extended/sudo/sudo_1.9.1.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.27.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#140824): https://lists.openembedded.org/g/openembedded-core/message/140824 Mute This Topic: https://lists.openembedded.org/mt/75697244/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
