commit: fb025e875f55e4ae9610287f7cc4654950dde6ac
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 25 21:44:59 2019 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Thu Apr 25 21:57:02 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb025e87
tmpfiles.eclass: fix ROOT check for EAPI 7
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
eclass/tmpfiles.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/tmpfiles.eclass b/eclass/tmpfiles.eclass
index a8bb9061ec8..68478ffbcd6 100644
--- a/eclass/tmpfiles.eclass
+++ b/eclass/tmpfiles.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 2016-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: tmpfiles.eclass
@@ -113,7 +113,7 @@ tmpfiles_process() {
[[ ${#} -gt 0 ]] || die "${FUNCNAME}: Must specify at least one
filename"
# Only process tmpfiles for the currently running system
- if [[ ${ROOT} != / ]]; then
+ if [[ ${ROOT:-/} != / ]]; then
ewarn "Warning: tmpfiles.d not processed on ROOT != /. If you
do not use"
ewarn "a service manager supporting tmpfiles.d, you need to run"
ewarn "the following command after booting (or chroot-ing with
all"