* [gentoo-dev] [PATCH] tmpfiles.eclass: fix ROOT check for EAPI 7
@ 2019-04-25 21:46 Mike Gilbert
2019-04-25 21:50 ` James Le Cuirot
0 siblings, 1 reply; 3+ messages in thread
From: Mike Gilbert @ 2019-04-25 21:46 UTC (permalink / raw
To: gentoo-dev
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
---
eclass/tmpfiles.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/tmpfiles.eclass b/eclass/tmpfiles.eclass
index a8bb9061ec8c..f23c7c77ab07 100644
--- a/eclass/tmpfiles.eclass
+++ b/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"
--
2.21.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] [PATCH] tmpfiles.eclass: fix ROOT check for EAPI 7
2019-04-25 21:46 [gentoo-dev] [PATCH] tmpfiles.eclass: fix ROOT check for EAPI 7 Mike Gilbert
@ 2019-04-25 21:50 ` James Le Cuirot
2019-04-25 21:57 ` Mike Gilbert
0 siblings, 1 reply; 3+ messages in thread
From: James Le Cuirot @ 2019-04-25 21:50 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 946 bytes --]
On Thu, 25 Apr 2019 17:46:50 -0400
Mike Gilbert <floppym@gentoo.org> wrote:
> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
> ---
> eclass/tmpfiles.eclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/eclass/tmpfiles.eclass b/eclass/tmpfiles.eclass
> index a8bb9061ec8c..f23c7c77ab07 100644
> --- a/eclass/tmpfiles.eclass
> +++ b/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"
Ack.
--
James Le Cuirot (chewi)
Gentoo Linux Developer
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] [PATCH] tmpfiles.eclass: fix ROOT check for EAPI 7
2019-04-25 21:50 ` James Le Cuirot
@ 2019-04-25 21:57 ` Mike Gilbert
0 siblings, 0 replies; 3+ messages in thread
From: Mike Gilbert @ 2019-04-25 21:57 UTC (permalink / raw
To: Gentoo Dev
On Thu, Apr 25, 2019 at 5:50 PM James Le Cuirot <chewi@gentoo.org> wrote:
>
> On Thu, 25 Apr 2019 17:46:50 -0400
> Mike Gilbert <floppym@gentoo.org> wrote:
>
> > Signed-off-by: Mike Gilbert <floppym@gentoo.org>
> > ---
> > eclass/tmpfiles.eclass | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/eclass/tmpfiles.eclass b/eclass/tmpfiles.eclass
> > index a8bb9061ec8c..f23c7c77ab07 100644
> > --- a/eclass/tmpfiles.eclass
> > +++ b/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"
>
> Ack.
Pushed, along with an updated copyright notice.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-04-25 21:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-25 21:46 [gentoo-dev] [PATCH] tmpfiles.eclass: fix ROOT check for EAPI 7 Mike Gilbert
2019-04-25 21:50 ` James Le Cuirot
2019-04-25 21:57 ` Mike Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox