Gentoo Archives: gentoo-dev

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

Replies