Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH] tmpfiles.eclass: fix ROOT check for EAPI 7
Date: Thu, 25 Apr 2019 21:46:58
Message-Id: 20190425214650.11815-1-floppym@gentoo.org
1 Signed-off-by: Mike Gilbert <floppym@g.o>
2 ---
3 eclass/tmpfiles.eclass | 2 +-
4 1 file changed, 1 insertion(+), 1 deletion(-)
5
6 diff --git a/eclass/tmpfiles.eclass b/eclass/tmpfiles.eclass
7 index a8bb9061ec8c..f23c7c77ab07 100644
8 --- a/eclass/tmpfiles.eclass
9 +++ b/eclass/tmpfiles.eclass
10 @@ -113,7 +113,7 @@ tmpfiles_process() {
11 [[ ${#} -gt 0 ]] || die "${FUNCNAME}: Must specify at least one filename"
12
13 # Only process tmpfiles for the currently running system
14 - if [[ ${ROOT} != / ]]; then
15 + if [[ ${ROOT:-/} != / ]]; then
16 ewarn "Warning: tmpfiles.d not processed on ROOT != /. If you do not use"
17 ewarn "a service manager supporting tmpfiles.d, you need to run"
18 ewarn "the following command after booting (or chroot-ing with all"
19 --
20 2.21.0

Replies

Subject Author
Re: [gentoo-dev] [PATCH] tmpfiles.eclass: fix ROOT check for EAPI 7 James Le Cuirot <chewi@g.o>