From: William Hubbs <w.d.hubbs@gmail.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] Allow disabling the build of all of systemd, leaving just udev
Date: Mon, 04 Jun 2012 18:51:12 +0000 [thread overview]
Message-ID: <20120604185112.GA17170@linux1> (raw)
In-Reply-To: <4FC9B938.6020608@kadzban.is-a-geek.net>
[-- Attachment #1: Type: text/plain, Size: 2845 bytes --]
On Sun, Jun 03, 2012 at 07:13:03PM -0700, Bryan Kadzban wrote:
> William Hubbs wrote:
> > On Sun, Jun 03, 2012 at 03:00:27PM -0700, Bryan Kadzban wrote:
> >> I'd rather not replace "cp -a /lib/udev/devices/* /dev" in a boot
> >> script with a binary that nothing else uses, plus its configuration
> >> (which doesn't use nodes in /lib/udev/devices like what has been
> >> the udev ABI for *years*, but instead uses a list of device
> >> descriptions), plus any systemd-level libraries it may or may not
> >> need in the future.
> >
> > Actually other things could use it because of /tmp and /run and
> > creating/removing files/directories there on bootup.
>
> Possibly, but the full functionality will require systemd anyway. The
> program still has to be run by something; simply installing it won't do
> anything useful. Plus it will have to depend on having mounted the
> various temporary filesystems that it changes.
I agree that just installing it does nothing. But, it can be run at the
appropriate time by your boot scripts, so the other concerns you mention
here would be taken care of that way.
> >> If a system is already running systemd, then systemd-tmpfiles may
> >> or may not be the best place to do this (the ABI change is a
> >> problem for those systems, unless I'm missing something in the
> >> *tmpfiles* manpages). But if systemd is not running, then sticking
> >> to the previous ABI explicitly is the right way to go I think.
> >
> > Unless you don't have a previous abi.
>
> Except that udev-182 and earlier *provided* an ABI. "Put files in
> /lib/udev/devices and they'll be copied to /dev at boot time" was the
> rule, just like "put programs in /lib/udev and refer to them in rules
> you install with IMPORT{program}="" or RUN+="" without a path" was the
> rule.
>
> Now that rule has apparently been changed, so programs are going to have
> to expend effort coping. Unless I'm missing some functionality of
> systemd-tmpfiles when I read the docs.
It has definitely been changed. See the systemd NEWS file. That is
exactly why I think we need the systemd-tmpfiles executable and man
page.
There are several tools in the systemd build that can be used on
non-systemd systems. Maybe those don't belong as part of the udev
ebuild, but as a separate --enable/--disable-tools switch or something
like that.
> > Gentoo relies on udev copying things from /lib/udev/devices, which is
> > gone with this version of udev, so we need the new abi.
>
> I think you need something in the bootscripts somewhere that implements
> the *old* ABI. Adding a line to the udev start script that does the
> copy will give you that.
Also it will allow users to copy any kind of file they please into /dev,
just by putting it in /usr/lib/udev/devices.
William
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2012-06-04 18:51 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-02 6:56 [PATCH] Allow disabling the build of all of systemd, leaving just udev Bryan Kadzban
2012-06-02 20:49 ` William Hubbs
2012-06-03 16:55 ` Bryan Kadzban
2012-06-03 21:21 ` Bryan Kadzban
2012-06-03 21:22 ` William Hubbs
2012-06-03 22:00 ` Bryan Kadzban
2012-06-04 1:50 ` William Hubbs
2012-06-04 2:13 ` Bryan Kadzban
2012-06-04 18:51 ` William Hubbs [this message]
2012-06-05 3:10 ` Bryan Kadzban
2012-06-05 17:56 ` William Hubbs
2012-06-06 3:45 ` Bryan Kadzban
2012-06-06 4:23 ` Bruce Dubbs
2012-06-06 12:38 ` Dan Nicholson
2012-06-06 16:52 ` William Hubbs
2012-06-06 17:15 ` William Hubbs
2012-06-06 18:51 ` Bruce Dubbs
2012-06-06 22:53 ` William Hubbs
2012-06-07 13:34 ` Dan Nicholson
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=20120604185112.GA17170@linux1 \
--to=w.d.hubbs@gmail.com \
--cc=linux-hotplug@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).