From 4d739d1d7e134f84605e5c726ab81b11d2e5a5ec Mon Sep 17 00:00:00 2001 From: Gabriel Valcazar Date: Mon, 18 Feb 2019 16:05:04 +0100 Subject: [PATCH] vsftpd: change path used for systemd runtime data systemd-tmpfiles throws warnings of /var/run being deprecated in favor of /run. Even though this is corrected automatically, the warnings appear several times during runtime, polluting the systemd journal. Signed-off-by: Gabriel Valcazar --- .../recipes-connectivity/vsftpd/vsftpd_%.bbappend | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/meta-digi-dey/recipes-connectivity/vsftpd/vsftpd_%.bbappend b/meta-digi-dey/recipes-connectivity/vsftpd/vsftpd_%.bbappend index 831546ee2..38c6ccec1 100644 --- a/meta-digi-dey/recipes-connectivity/vsftpd/vsftpd_%.bbappend +++ b/meta-digi-dey/recipes-connectivity/vsftpd/vsftpd_%.bbappend @@ -1,3 +1,11 @@ -# Copyright (C) 2013 Digi International. +# Copyright (C) 2013-2019 Digi International. FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" + +do_install_append() { + if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then + install -d ${D}${sysconfdir}/tmpfiles.d + echo "d /run/vsftpd/empty 0755 root root -" \ + > ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf + fi +}