From: William Hubbs <williamh@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] rfc: openrc use flag
Date: Wed, 20 Apr 2011 23:34:59 -0500 [thread overview]
Message-ID: <20110421043459.GA14245@linux1> (raw)
In-Reply-To: <20110421043146.38f2966b@epia.jer-c2.orkz.net>
[-- Attachment #1: Type: text/plain, Size: 2260 bytes --]
On Thu, Apr 21, 2011 at 04:31:46AM +0200, Jeroen Roovers wrote:
> On Wed, 20 Apr 2011 22:02:41 +0400
> Peter Volkov <pva@gentoo.org> wrote:
>
> > В Срд, 20/04/2011 в 12:24 -0500, William Hubbs пишет:
> > > The author of the bug feels that the way to fix this is for us to
> > > put a check in openrc that makes it refuse to run services if it
> > > was not used in the boot process.
>
> Why refuse? It could instead assume it needed to only start a service
> in, say, a chroot, like ssh or apache2, without assuming anything else
> needs to be done. If the service needed anything else, it could be
> left to fail on its own terms.
This might be possible; I would just change the message in the patch
provided to something like,
"Warning, openrc did not boot this system, so you may get unpredictable results.\n"
> > This is good idea to have in any case since I remember my system went
> > crazy after I've tried to start some service inside chroot.
>
> Basically, baselayout/openrc (baselayout-1 has the same problem) would
> (try to) shut down your system because it thought something was
> terribly wrong. That's bitten me as well when I still thought I could
> test services inside a chroot.
>
> > > This may work; however, I do not feel that it addresses the root
> > > cause of the bug. I feel that the root cause is packages
> > > unconditionally installing udev rules which assume everyone uses
> > > openrc.
>
> How should the udev rules be changed to match /any/ init system?
For an example of the problem, take a look on your system at
/lib/udev/rules.d/90-network.rules. This is part of openrc's hotplug
functionality. Basically it tries to run
/etc/init.d/net.$INTERFACE start when a network interface is added to
the system and rc_hotplug allows it.
In net-wireless/bluez, you will see similar integration between openrc
and udev. Once bluez is installed, /lib/udev/rules.d/70-bluetooth.rules
runs bluetooth.sh which tries to run a service in /etc/init.d.
To make things work with /any/ init system, the best way to go would be
to make it a practice not to run services from within udev rules or
external run scripts like net.sh and bluetooth.sh in /lib/udev.
William
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2011-04-21 4:36 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-20 17:24 [gentoo-dev] rfc: openrc use flag William Hubbs
2011-04-20 18:02 ` Peter Volkov
2011-04-20 18:20 ` Pacho Ramos
2011-04-21 19:30 ` William Hubbs
2011-04-21 20:03 ` Pacho Ramos
2011-04-21 20:52 ` William Hubbs
2011-04-22 9:50 ` Pacho Ramos
2011-04-22 8:26 ` Peter Volkov
2011-04-22 8:58 ` Michał Górny
2011-04-20 18:22 ` William Hubbs
2011-04-20 18:33 ` Michał Górny
2011-04-21 4:52 ` [gentoo-dev] " Duncan
2011-04-20 18:44 ` [gentoo-dev] " Fabian Groffen
2011-04-21 2:31 ` Jeroen Roovers
2011-04-21 4:34 ` William Hubbs [this message]
2011-04-21 19:05 ` William Hubbs
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=20110421043459.GA14245@linux1 \
--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