mirror of
https://git.yoctoproject.org/poky
synced 2026-04-05 08:02:25 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
971c1ee2e7
commit
ba11042bbd
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user