public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: William Hubbs <williamh@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] tmpfiles virtual
Date: Wed, 16 Nov 2016 14:21:41 -0600	[thread overview]
Message-ID: <20161116202141.GA24625@whubbs1.gaikai.biz> (raw)
In-Reply-To: <af583f50-fbb2-196e-f7f0-3b48b610d8f5@gentoo.org>

[-- Attachment #1: Type: text/plain, Size: 3361 bytes --]

On Wed, Nov 16, 2016 at 01:04:11PM -0500, Ian Stakenvicius wrote:
> On 16/11/16 12:03 PM, William Hubbs wrote:
> > On Wed, Nov 16, 2016 at 10:14:02AM -0500, Ian Stakenvicius wrote:
> >> On 16/11/16 10:08 AM, William Hubbs wrote:
> >>> opentmpfiles will be updated to install the service scripts which
> >>> will be run when OpenRC boots a system. There is nothing for
> >>> it to do if systemd is used to boot the system.
> >>>
> >>> William
> >>>
> >>
> >> But there is something to do if openrc is used to boot the system and
> >> systemd is the package providing tmpfiles.d processing via the virtual.
> > 
> > The providers (opentmpfiles and systemd) will not block each other, so
> > the only way this will happen is if you have openrc and systemd
> > installed then forcefully remove opentmpfiles. I think you would not
> > want to do that until you are ready to migrate to booting with systemd.
> > 
> > William
> > 
> 
> I think I'm having a hard time getting across the issue here...:
> 
> 1 - we will have a virtual/tmpfiles that will bring in EITHER systemd,
> or opentmpfiles.
> 
> 2 - openrc will NOT depend on opentmpfiles (nor virtual/tmpfiles)
> 
> 3 - Applications that install stuff into /usr/lib/tmpfiles.d/ will
> need to depend on virtual/tmpfiles in order to make sure that the
> system has something installed that will process them at boot-time.
 
 Yes, this will be handled by an RDEPEND in the eclass.

> GIVEN THIS, if a system has both systemd and openrc installed (that
> is, they dual-boot), then virtual/tmpfiles will NOT bring in
> opentmpfiles, and so if opentmpfiles is the only package that installs
> init scripts then openrc won't trigger any processing of
> /usr/lib/tmpfiles.d/* at bootup in this situation.
 
 The way this is handled on the systemd side right now is with a PDEPEND
 on udev-init-scripts, which forces them to be installed even on a pure
 systemd system. That is a separate issue, which I may open as a bug
 against systemd, but discussing it goes on a separate thread probably.

If we follow that, I would add opentmpfiles to the pdepend.

> I think, given the opentmpfiles and the systemd tmpfiles commands and
> arguments can differ, it would likely make more sense to have a
> virtual service in openrc (that is, keep tmpfiles.dev and
> tmpfiles.setup as virtuals) and have opentmpfiles and systemd both
> install init scripts for their respective implementation that will
> provide each of those in openrc.

This is a separate issue. The service scripts will provide virtuals, but
openrc itself doesn't reference them. The only service I know about that
references them is kmod-static-nodes; it runs before tmpfiles.dev, which
is in the sysinit runlevel. tmpfiles.setup is in the boot runlevel so it
runs early enough that there haven't been issues.

> The alternative would be to make a
> tmpfiles-init-scripts package that will contain a single set of
> scripts that'll call either the opentmpfiles or the systemd-tmpfiles
> implementation at runtime depending on what is available.

I can make the service scripts call the systemd-tmpfiles service if it
is available or if not call the opentmpfiles implementation.

I'm not sure whether it is worth having a separate package for the
service scripts in this case.

William


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 163 bytes --]

  reply	other threads:[~2016-11-16 20:22 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-15  0:23 [gentoo-dev] tmpfiles virtual William Hubbs
2016-11-15  5:09 ` Michał Górny
2016-11-15 15:49   ` Dustin C. Hatch
2016-11-15 16:50     ` Rich Freeman
2016-11-15 16:56     ` Michał Górny
2016-11-15 17:56       ` William Hubbs
2016-11-15 18:57         ` Ian Stakenvicius
2016-11-15 19:42           ` Michał Górny
2016-11-15 19:51             ` Ian Stakenvicius
2016-11-15 19:56               ` Mike Gilbert
2016-11-16 13:57                 ` Ian Stakenvicius
2016-11-16 15:08                   ` William Hubbs
2016-11-16 15:14                     ` Ian Stakenvicius
2016-11-16 17:03                       ` William Hubbs
2016-11-16 18:04                         ` Ian Stakenvicius
2016-11-16 20:21                           ` William Hubbs [this message]
2016-11-16 23:09                             ` Ian Stakenvicius
2016-11-16 23:16                               ` William Hubbs
2016-11-16 23:19                                 ` Ian Stakenvicius
2016-11-16 23:25                                   ` William Hubbs
2016-11-16 23:45                                     ` Ian Stakenvicius
2016-11-17  1:41                                       ` Rich Freeman
2016-11-17  2:19                                         ` Mike Gilbert
2016-11-17  4:16                                           ` Ian Stakenvicius
2016-11-17 21:58                                         ` [gentoo-dev] " Martin Vaeth
2016-11-18  0:41                                           ` Rich Freeman
2016-11-17  0:09                                     ` [gentoo-dev] " Mike Gilbert
2016-11-17  6:03                             ` Michał Górny
2016-11-17 15:02                               ` Ian Stakenvicius
2016-11-17 17:22                                 ` William Hubbs
2016-11-17 19:00                                   ` Ian Stakenvicius
2016-11-17 18:46                                 ` Michał Górny
2016-11-17 18:49                                   ` Michał Górny
2016-11-17 19:01                                     ` William Hubbs
2016-11-17 19:10                                     ` Ian Stakenvicius
2016-11-17 19:42                                       ` Michał Górny
2016-11-17 20:07                                         ` Ian Stakenvicius
2016-11-17 20:21                                           ` Rich Freeman
2016-11-17 21:38                                             ` [gentoo-dev] " Martin Vaeth
2016-11-17 20:50                                           ` [gentoo-dev] " Michał Górny
2016-11-17 22:19                                             ` Ian Stakenvicius
2016-11-15 17:11   ` Mike Gilbert
2016-11-15 18:22     ` William Hubbs
2016-11-15 19:40       ` Michał Górny
2016-11-18 18:42         ` William Hubbs
2016-11-18 18:46           ` Mike Gilbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161116202141.GA24625@whubbs1.gaikai.biz \
    --to=williamh@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox