public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Beta test Gentoo with mdev instead of udev; version 5 - failure :-(
Date: Wed, 14 Mar 2012 09:32:34 +0000	[thread overview]
Message-ID: <20120314093234.16797e8c@hactar.digimed.co.uk> (raw)
In-Reply-To: <20120313234354.GG2536@acm.acm>

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

On Tue, 13 Mar 2012 23:43:54 +0000, Alan Mackenzie wrote:

> > udev is not a device node system, it is a device manager. Requiring
> > drivers to handle it gets us into the same mess as Windows, where each
> > driver has to implement the same functionality itself. If a new modem
> > is released with a different USB ID, but using the same driver, your
> > way would require a new kernel, the current approach requires one
> > line to be added to a config file.  
> 
> Right!  Now this is beginning to look like a beginning of an answer to
> my lack of understanding.  ;-)
> 
> This config file - is this the udev "rules"?  Or am I getting mixed up
> with something else?

Yes. They are simple rules under /etc/udev/rules.d that determine what to
do when a device appears on the system, from giving it a specific name or
setting permissions to running a program. It is the latter that causes
problems when /usr is not mounted.

> > How so? It's central to the whole "when do we need /usr?" debate.  
> 
> I meant we'd already had a wide ranging discussion about early /usr.

Yes we didi, but it's not going to go away any time soon :(

> > > > You could use this to argue that /usr should be mounted before
> > > > udev is started, but you could just as well use it to argue that
> > > > udev should not be trying to run such rules at the boot
> > > > runlevel.  
> 
> > > Or that udev shouldn't have "rules".  I still don't understand the
> > > basic concept driving this thing.  My HDDs don't need rules - they
> > > just need a mapping from /dev/sd[ab] into device 8/0 and 8/16, and
> > > the appropriate drivers built into my kernel.  
> 
> > "I don't need it so no one needs it". It sounds like what you need is
> > mdev, but many people want or need more from a device manager. There
> > are many more and varied devices than simple hard disks.  
> 
> That's not fair.  I'm convinced _I_ don't need more than mdev; I'm still
> trying to get a handle on why other devices need more.

OK, here's another example. I have a box here with two USB>RS232
adaptors, connected to completely different devices. The programs
connecting to those devices need to be told which interface to
communicate with, but you can't know in advance which will grab ttyUSB0
and which ttyUSB1. udev rules mean I can give them persistent names
independent of the kernel assignments. One of the devices is a UPS,
imagine the problems if both were UPSes and the software didn't know
which was which - power fails to one and the software sends shutdown
commands to the computers that still have power and let the others fail
when the battery goes flat.

> > What you don't see is why *you* need it, and that's fair enough. Just
> > consider that it does things that others need, even if you don't.  
> 
> I'm not trying to be combative.  In fact, I'm trying not to be
> combative. I'm just trying to get some sort of grasp on what it is I
> don't yet see. I want to understand what udev offers that mdev can't,
> and I'm getting very frustrated about not being able to find the right
> questions to ask.

I wasn't suggesting you were being combative, hence the "fair enough".
You are seeing things from your perspective, as we all do (including the
udev devs who made this decision) and it sounds like you have no need for
any of this. Or maybe you do and don't know you are using it. Many
programs install udev rulesets - for example sane-backends installs a
1500+ line (including comments) rule file, libgphoto's is not much
smaller. all so you can connect a camera or scanner and not have to worry
about how it is recognised or configured.

> > But I still think the requirement for /usr to be mounted is a lazy, if
> > understandable, solution to the way udev's operations are implemented.
> > After all, the vast majority of PC Linux installations out there
> > already use an initramfs.  
> 
> They do, and I understand that one - it is the necessity to have a
> one-size-fits-all kernel in a binary distribution.  As gentooers, we
> don't suffer that constraint, therefore we don't (and shouldn't) need an
> initramfs, unless we want one.

On the other hand, Gentoo's policy has been to follow upstream as closely
as is practical, so if udev upstream wants /usr mounted early, that's
what we do - or do without udev. Both are reasonable choices and Walt
should be commended for his work on this, both on making it work and
raising awareness of the alternative. I haven't yet decided which way
I'll go, I'll probably give mdev a try on a non-desktop box, but it's
good to have a choice and may the best option win.

> > How do I set my laser printer to stun?  
> 
> How about a picture of Marilyn Monroe?

ROFL.


-- 
Neil Bothwick

Will we ever get out of this airport? asked Tom interminably.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2012-03-14  9:34 UTC|newest]

Thread overview: 186+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-15  6:21 [gentoo-user] Anybody want to beta test Gentoo with mdev instead of udev? waltdnes
2011-11-15  7:44 ` Pandu Poluan
2011-11-15 16:16   ` Alan McKinnon
2011-11-15 17:03     ` Pandu Poluan
2011-11-15 16:41   ` Albert W. Hopkins
2011-11-15 17:04     ` Pandu Poluan
2011-11-15 20:16   ` waltdnes
2011-11-16  0:52     ` Pandu Poluan
2011-11-16  1:41       ` Pandu Poluan
2011-11-16  3:18         ` yegle
2011-11-16 10:21       ` Pandu Poluan
2011-11-16 10:57       ` Pandu Poluan
2011-11-20 16:29 ` pk
2011-11-21 10:47 ` [gentoo-user] Re: Beta test Gentoo with mdev instead of udev; version 2 waltdnes
2011-11-30 13:58   ` Pandu Poluan
2011-12-01 19:36     ` Walter Dnes
2011-12-01 19:45   ` [gentoo-user] Re: Beta test Gentoo with mdev instead of udev; version 3 Walter Dnes
2011-12-02  0:23     ` Pandu Poluan
2012-01-03 10:04     ` Walter Dnes
2012-01-03 10:22       ` Pandu Poluan
2012-01-03 12:32         ` Nicolas Sebrecht
2012-01-03 12:48           ` Pandu Poluan
2012-01-03 13:13             ` Nicolas Sebrecht
2012-01-03 13:42               ` Pandu Poluan
2012-01-03 14:31                 ` Nicolas Sebrecht
2012-01-03 14:43                   ` Alan McKinnon
2012-01-03 15:04                     ` Dale
2012-01-03 22:15                   ` Neil Bothwick
2012-01-03 23:15                     ` Dale
2012-01-04 12:35                       ` Pandu Poluan
2012-01-04 20:21                         ` Canek Peláez Valdés
2012-01-04 23:33                           ` Dale
2012-01-04 23:49                             ` Michael Mol
2012-01-05  0:02                               ` Alan McKinnon
2012-01-05  7:30                                 ` pk
2012-01-05  7:43                                   ` Alan McKinnon
2012-01-05  8:17                                     ` pk
2012-01-05 12:08                                       ` Alan McKinnon
2012-01-05 14:03                                         ` Dale
2012-01-05 15:52                                           ` Neil Bothwick
2012-01-05 18:12                                             ` Alan McKinnon
2012-01-05 16:03                                           ` pk
2012-01-05 16:20                                             ` Dale
2012-01-05 16:39                                               ` pk
2012-01-05 16:48                                                 ` Pandu Poluan
2012-01-06  1:29                                                 ` Dale
2012-01-06  3:00                                                   ` pk
2012-01-06  3:29                                                     ` Pandu Poluan
2012-01-05 15:50                                         ` pk
2012-01-05 18:02                                           ` Alan McKinnon
2012-01-05 18:20                                             ` Michael Mol
2012-01-05 20:15                                               ` Mick
2012-01-05 20:33                                               ` Neil Bothwick
2012-01-05 20:01                                             ` pk
2012-01-05 16:29                                         ` Pandu Poluan
2012-01-07  1:17                                   ` Walter Dnes
2012-01-07 11:44                                     ` pk
2012-01-08 23:48                                       ` Walter Dnes
2012-01-09  8:19                                         ` pk
2012-01-09  9:47                                           ` Pandu Poluan
2012-01-09 19:25                                             ` pk
2012-01-09 21:08                                             ` Walter Dnes
2012-01-10 12:13                                               ` Sebastian Beßler
2012-01-05  9:07                           ` Pandu Poluan
2012-01-05 10:01                             ` Nicolas Sebrecht
2012-01-05 11:22                               ` Neil Bothwick
2012-01-05 19:20                               ` Michael Mol
2012-01-05 22:08                                 ` Nicolas Sebrecht
2012-01-05 21:38                                   ` Michael Mol
2012-01-05 22:10                                     ` Alan McKinnon
2012-01-06  1:45                                       ` Dale
2012-01-06  2:15                                         ` Pandu Poluan
2012-01-06  2:39                                           ` Dale
2012-01-05 11:46                             ` Alan McKinnon
2012-01-05 14:41                               ` pk
2012-01-03 13:18           ` Alan McKinnon
2012-01-03 13:36             ` Nicolas Sebrecht
2012-01-03 13:49               ` Volker Armin Hemmann
2012-01-03 14:35                 ` Nicolas Sebrecht
2012-01-03 13:54               ` Dale
2012-01-03 15:22         ` Walter Dnes
2012-01-03 15:49           ` Nicolas Sebrecht
2012-01-03 16:52           ` Mick
2012-02-17 23:40     ` [gentoo-user] Re: Beta test Gentoo with mdev instead of udev; version 4 Walter Dnes
2012-02-18  5:51       ` Pandu Poluan
2012-02-27  9:49       ` Pandu Poluan
2012-02-29  1:27         ` Walter Dnes
2012-03-11  9:09       ` [gentoo-user] Beta test Gentoo with mdev instead of udev; version 5 Walter Dnes
2012-03-11 11:27         ` Daddy
2012-03-11 14:17           ` Alan McKinnon
2012-03-11 18:39             ` Canek Peláez Valdés
2012-03-11 19:37             ` Daddy
2012-03-11 20:10               ` David Abbott
2012-03-11 20:34                 ` Alan McKinnon
2012-03-11 21:20                   ` Dale
2012-03-11 23:42                     ` Daddy
2012-03-12  1:30                       ` Dale
2012-03-12 12:21                   ` Neil Bothwick
2012-03-13  2:41                     ` Peter Humphrey
2012-03-13  7:02                       ` Alan McKinnon
2012-03-13 11:01                       ` Neil Bothwick
2012-03-13 14:55                         ` Peter Humphrey
2012-03-11 23:04                 ` Daddy
2012-03-11 20:27               ` Alan McKinnon
2012-03-11 23:07                 ` Daddy
2012-03-11 23:38                   ` Alan McKinnon
2012-03-12 19:23             ` pk
2012-03-11 19:28           ` Walter Dnes
2012-03-11 19:49             ` Daddy
2012-03-12 19:09             ` pk
2012-03-20 19:49           ` covici
2012-03-20 20:08             ` pk
2012-03-21  0:45             ` Pandu Poluan
2012-03-11 14:08         ` Pandu Poluan
2012-03-11 21:34         ` Walter Dnes
2012-03-13 20:45           ` [gentoo-user] Beta test Gentoo with mdev instead of udev; version 6 Walter Dnes
2012-03-14 13:15             ` J. Roeleveld
2012-03-14 21:43               ` Walter Dnes
2012-03-14 22:09                 ` Canek Peláez Valdés
2012-03-14 23:59                   ` Walter Dnes
2012-03-15  0:10                     ` Pandu Poluan
2012-03-15  0:23                     ` Canek Peláez Valdés
2012-03-12  9:24         ` [gentoo-user] Beta test Gentoo with mdev instead of udev; version 5 - failure :-( Alan Mackenzie
2012-03-12 19:42           ` pk
2012-03-13  7:14           ` Walter Dnes
2012-03-13 12:33             ` Alan Mackenzie
2012-03-13  7:33           ` Walter Dnes
2012-03-13 13:05             ` Alan Mackenzie
2012-03-13 19:00               ` Walter Dnes
2012-03-13 19:47                 ` Alan Mackenzie
2012-03-13 20:27                   ` Canek Peláez Valdés
2012-03-13 20:54                     ` Bruce Hill, Jr.
2012-03-13 21:22                       ` Canek Peláez Valdés
2012-03-13 21:35                         ` Bruce Hill, Jr.
2012-03-13 21:49                           ` Canek Peláez Valdés
2012-03-13 22:36                             ` Bruce Hill, Jr.
2012-03-13 22:46                               ` Canek Peláez Valdés
2012-03-13 22:00                           ` Alan McKinnon
2012-03-14  8:48                           ` [gentoo-user] " Nicolas Sebrecht
2012-03-13 21:07                     ` [gentoo-user] " Alan Mackenzie
2012-03-13 21:33                       ` Neil Bothwick
2012-03-13 22:20                         ` Alan Mackenzie
2012-03-13 22:38                           ` Canek Peláez Valdés
2012-03-13 23:03                             ` Alan Mackenzie
2012-03-14  0:07                               ` Canek Peláez Valdés
2012-03-14  0:52                                 ` Pandu Poluan
2012-03-14 15:16                                 ` Alan Mackenzie
2012-03-14 16:12                                   ` Pandu Poluan
2012-03-14 21:01                                     ` Mike Edenfield
2012-03-14 17:22                                   ` Canek Peláez Valdés
2012-03-14 18:03                                     ` Pandu Poluan
2012-03-14 18:19                                       ` Canek Peláez Valdés
2012-03-14 19:24                                         ` Pandu Poluan
2012-03-14 19:29                                           ` Pandu Poluan
2012-03-14 19:45                                           ` Canek Peláez Valdés
2012-03-14 22:14                                             ` pk
2012-03-14 18:09                                     ` Michael Mol
2012-03-14 18:45                                       ` Canek Peláez Valdés
2012-03-14 19:41                                         ` Michael Mol
2012-03-14 19:53                                           ` Canek Peláez Valdés
2012-03-15  7:23                                             ` Dale
2012-03-14 20:16                                         ` pk
2012-03-17  4:20                                     ` Bruce Hill, Jr.
2012-03-17  4:27                                       ` Canek Peláez Valdés
2012-03-17 14:20                                         ` Alan McKinnon
2012-03-18  3:42                                           ` Bruce Hill, Jr.
2012-03-14 21:49                                   ` Walter Dnes
2012-03-14 15:20                                 ` Tanstaafl
2012-03-14 15:27                                   ` Michael Mol
2012-03-14 15:59                                     ` Pandu Poluan
2012-03-16  6:13                                       ` Joost Roeleveld
2012-03-16  8:46                                         ` Neil Bothwick
2012-03-16 14:44                                           ` Joost Roeleveld
2012-03-16 22:33                                             ` Neil Bothwick
2012-03-17 14:11                                               ` Alan McKinnon
2012-03-19 23:23                                                 ` Neil Bothwick
2012-03-19 23:33                                                   ` Alan McKinnon
2012-03-20  8:35                                                     ` Neil Bothwick
2012-03-14 20:47                               ` Mike Edenfield
2012-03-13 23:03                           ` Neil Bothwick
2012-03-13 23:43                             ` Alan Mackenzie
2012-03-14  9:32                               ` Neil Bothwick [this message]
2012-03-14 17:56                           ` Stroller
2012-03-14 19:59                             ` Alan Mackenzie
2012-03-15  0:29                             ` Walter Dnes
2012-03-17 13:24                             ` Graham Murray

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=20120314093234.16797e8c@hactar.digimed.co.uk \
    --to=neil@digimed.co.uk \
    --cc=gentoo-user@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