eclass/tmpfiles: Sync with Gentoo

It's from Gentoo commit 95aa07e20e071fec2756dca82171fa2898626ea3.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2026-03-23 07:35:37 +00:00
parent b69989a4ea
commit 84982bf1b6

View File

@ -1,4 +1,4 @@
# Copyright 2016-2024 Gentoo Authors
# Copyright 2016-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: tmpfiles.eclass
@ -139,6 +139,8 @@ tmpfiles_process() {
systemd-tmpfiles --create "$@"
elif type tmpfiles &> /dev/null; then
tmpfiles --create "$@"
elif type seedfiles &> /dev/null; then
seedfiles --create "$@"
fi
if [[ $? -ne 0 ]]; then
ewarn "The tmpfiles processor exited with a non-zero exit code"