sudo: remove volatile configuration file

The new version of sudo has fixed the problem and will create the
directory if it doesn't exist. So the configuration file is no longer
needed.

(From OE-Core rev: 7c962ca5d01ae4b9f511bb2b3b7700f970051727)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Chen Qi
2014-08-21 18:24:42 +08:00
committed by Richard Purdie
parent 5a3a7e0f74
commit 2bdd294283
2 changed files with 2 additions and 6 deletions

View File

@@ -1 +0,0 @@
d root root 0755 /var/run/sudo none

View File

@@ -2,7 +2,7 @@ require sudo.inc
SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \
${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \
file://volatiles.99_sudo"
"
PAM_SRC_URI = "file://sudo.pam"
@@ -22,9 +22,6 @@ do_install_append () {
chmod 4111 ${D}${bindir}/sudo
chmod 0440 ${D}${sysconfdir}/sudoers
# Explicitly remove the ${localstatedir}/run directory as we can
# manage it by a configuration file under ${sysconfdir}/default/volatiles/
# Explicitly remove the ${localstatedir}/run directory to avoid QA error
rmdir -p --ignore-fail-on-non-empty ${D}${localstatedir}/run/sudo
install -d ${D}/${sysconfdir}/default/volatiles
install -m 644 ${WORKDIR}/volatiles.99_sudo ${D}/${sysconfdir}/default/volatiles/99_sudo
}