summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sudo
diff options
context:
space:
mode:
authorRicardo Salveti <ricardo@foundries.io>2020-07-21 00:09:26 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-22 12:45:56 +0100
commitba11042bbd098d1224bfe84ef3818dd3a08a5d8a (patch)
tree28a0c786f30eec5da78bc70807607e5486fbded5 /meta/recipes-extended/sudo
parent971c1ee2e765c19d3facce6b5097345268cfbf44 (diff)
downloadpoky-ba11042bbd098d1224bfe84ef3818dd3a08a5d8a.tar.gz
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. (From OE-Core rev: 22ae707afa69d1d0a0496a6dc25a400a9c4404d9) Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sudo')
-rw-r--r--meta/recipes-extended/sudo/sudo_1.9.1.bb3
1 files changed, 2 insertions, 1 deletions
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 = " \
22EXTRA_OECONF += " \ 22EXTRA_OECONF += " \
23 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \ 23 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \
24 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-tmpfiles.d=${nonarch_libdir}/tmpfiles.d', '--disable-tmpfiles.d', d)} \ 24 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-tmpfiles.d=${nonarch_libdir}/tmpfiles.d', '--disable-tmpfiles.d', d)} \
25 --with-rundir=/run/sudo \
25 --with-vardir=/var/lib/sudo \ 26 --with-vardir=/var/lib/sudo \
26 " 27 "
27 28
@@ -38,7 +39,7 @@ do_install_append () {
38 chmod 0440 ${D}${sysconfdir}/sudoers 39 chmod 0440 ${D}${sysconfdir}/sudoers
39 40
40 # Explicitly remove the /sudo directory to avoid QA error 41 # Explicitly remove the /sudo directory to avoid QA error
41 rmdir -p --ignore-fail-on-non-empty ${D}/sudo 42 rmdir -p --ignore-fail-on-non-empty ${D}/run/sudo
42} 43}
43 44
44FILES_${PN} += "${nonarch_libdir}/tmpfiles.d" 45FILES_${PN} += "${nonarch_libdir}/tmpfiles.d"