public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Nathan Phillip Brink <binki@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: Walter Dnes <waltdnes@waltdnes.org>
Subject: Re: [gentoo-dev] Suggestion for getting rid of udev
Date: Wed, 12 Oct 2011 05:32:05 +0000	[thread overview]
Message-ID: <20111012053204.GE22488@ohnopublishing.net> (raw)
In-Reply-To: <20111012044023.GA8203@waltdnes.org>

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

On Wed, Oct 12, 2011 at 12:40:23AM -0400, Walter Dnes wrote:
> Hi all
> 
>   Recently, there was a firestorm on the gentoo-user list over the idea
> that udev would eventually require /usr to be on the same physical
> parition as /, or else use initramfs, which is its own can of worms. I'm
> not a programmer, let alone a developer.  Rather than merely ranting, I
> went and searched for an alternative.
...
> 
>   Another option is to take the current Gentoo setup, drop udev and
> use mdev in the same manner as Alpine uses it.  In case anyone asks,
> auto mounting should still be possible.  Attached is an excerpt from
> /var/log/messages from a basic Alpine install.  The kernel messages were
> generated when I inserted a USB key into a usb jack.

Seeing from the prior conversations here (sorry for lack of citation)
and
http://lists.busybox.net/pipermail/busybox/2011-September/076710.html
, I suspect that the root problem isn't with udev itself but with the
udev rules.

The magic which makes automatic userspace configuration possible is in
the udev rules and makes udev appear to be the problem. For example,
if you switch to mdev currently, you will notice that X11's device
autodetection doesn't work so well. (At least for me, X11's
autodetection magically works for detecting input devices with udev
but not with mdev). It is concievable that you could develop a
parallel database of mdev-compatible rules and even let packages
install rules specific to themselves (with modification to mdev
http://lists.busybox.net/pipermail/busybox/2011-September/076666.html
). With these sorts of things, you might figure out a way to make
X11's device autoconfiguration work or perform other device
initialization tasks. But at the same time, you have a good chance of
accidentally introducing a reliance on libraries/programs installed to
/usr. This latter problem is the issue, deciding how much software
should have --prefix=/ versus the normal --prefix=/usr.

You can already try out what using mdev instead of udev is like in
Gentoo. Just add `sys-apps/busybox mdev' to /etc/portage/package.use,
remerge busybox. You must be sure to be using busybox-1.92.2 or later
for bug #83301.

# rc-update add mdev sysinit
# rc-update del udev sysinit

But be 'ware that this isn't guaranteed to provide a successful boot
;-).

> Oct  9 13:46:00 e521 kern.info kernel: [10714.105621] usb 2-8: new high speed USB device using ehci_hcd and address 4
> Oct  9 13:46:00 e521 kern.info kernel: [10714.241353] usb 2-8: New USB device found, idVendor=13fe, idProduct=1e00
> Oct  9 13:46:00 e521 kern.info kernel: [10714.241357] usb 2-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> Oct  9 13:46:00 e521 kern.info kernel: [10714.241360] usb 2-8: Product: Patriot Memory  
> Oct  9 13:46:00 e521 kern.info kernel: [10714.241362] usb 2-8: Manufacturer:         
> Oct  9 13:46:00 e521 kern.info kernel: [10714.241364] usb 2-8: SerialNumber: 078215A302CF
> Oct  9 13:46:00 e521 kern.info kernel: [10714.244241] scsi4 : usb-storage 2-8:1.0
> Oct  9 13:46:01 e521 kern.notice kernel: [10715.279753] scsi 4:0:0:0: Direct-Access              Patriot Memory   PMAP PQ: 0 ANSI: 0 CCS
> Oct  9 13:46:02 e521 kern.notice kernel: [10715.930991] sd 4:0:0:0: [sdb] 31326208 512-byte logical blocks: (16.0 GB/14.9 GiB)
> Oct  9 13:46:02 e521 kern.notice kernel: [10715.931980] sd 4:0:0:0: [sdb] Write Protect is off
> Oct  9 13:46:02 e521 kern.debug kernel: [10715.931983] sd 4:0:0:0: [sdb] Mode Sense: 23 00 00 00
> Oct  9 13:46:02 e521 kern.err kernel: [10715.931986] sd 4:0:0:0: [sdb] Assuming drive cache: write through
> Oct  9 13:46:02 e521 kern.err kernel: [10715.935986] sd 4:0:0:0: [sdb] Assuming drive cache: write through
> Oct  9 13:46:02 e521 kern.info kernel: [10715.981381]  sdb: sdb1
> Oct  9 13:46:02 e521 kern.err kernel: [10715.986028] sd 4:0:0:0: [sdb] Assuming drive cache: write through
> Oct  9 13:46:02 e521 kern.notice kernel: [10715.986035] sd 4:0:0:0: [sdb] Attached SCSI removable disk

Unless if I'm missing something, those messages _always_ show up even
if udev or mdev haven't been invoked.

-- 
binki

Look out for missing or extraneous apostrophes!

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

  parent reply	other threads:[~2011-10-12  5:28 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-12  4:40 [gentoo-dev] Suggestion for getting rid of udev Walter Dnes
2011-10-12  5:05 ` Zac Medico
2011-10-12 13:10   ` Walter Dnes
2011-10-12  5:32 ` Nathan Phillip Brink [this message]
2011-10-12 13:09   ` Walter Dnes
2011-10-12 23:37     ` Nathan Phillip Brink
2011-10-12  7:05 ` Michał Górny
2011-10-12 13:09   ` Walter Dnes
2011-10-12 16:28     ` Canek Peláez Valdés
2011-10-12 17:25     ` Michał Górny
2011-10-12 17:30     ` Nirbheek Chauhan
2011-10-12 17:49       ` Ciaran McCreesh
2011-10-12 17:56         ` Rich Freeman
2011-10-13 15:14         ` Olivier Crête
2011-10-13 15:28           ` Rich Freeman
2011-10-13 16:30             ` Arun Raghavan
2011-10-13 17:02               ` Mike Frysinger
2011-10-13 18:34                 ` Samuli Suominen
2011-10-13 18:55                 ` Canek Peláez Valdés
2011-10-13 18:59                   ` Canek Peláez Valdés
2011-10-13 19:03                   ` Mike Frysinger
2011-10-13 17:05           ` Ciaran McCreesh
2011-10-15  8:42             ` Michael Schreckenbauer
2011-10-15  8:57               ` Wulf C. Krueger
2011-10-15  9:13                 ` Canek Peláez Valdés
2011-10-15  9:23                   ` Canek Peláez Valdés
2011-10-15 22:07                 ` Zac Medico
2011-10-16 12:52                   ` [gentoo-dev] supporting /usr on separate partition (was: Suggestion for getting rid of udev) Ian Stakenvicius
2011-10-16 18:44                     ` [gentoo-dev] supporting /usr on separate partition Zac Medico
2011-10-16 19:36                       ` Graham Murray
2011-10-16 19:40                         ` Michał Górny
2011-10-17 16:02                       ` Ian Stakenvicius
2011-10-17 17:24                         ` Zac Medico
2011-10-17 17:50                           ` Ian Stakenvicius
2011-10-17 17:55                             ` Samuli Suominen
2011-10-17 19:18                               ` Ian Stakenvicius
2011-10-17 20:01                             ` Sven Vermeulen
2011-10-17 20:31                               ` Zac Medico
2011-10-16 13:07                   ` [gentoo-dev] Suggestion for getting rid of udev Rich Freeman
2011-10-16 19:33                     ` Zac Medico
2011-10-17 20:59                       ` Joost Roeleveld
2011-10-18 18:03                         ` Zac Medico
2011-10-15  4:06           ` Walter Dnes
2011-10-15  7:29             ` Michał Górny
2011-10-15 17:13               ` Mike Frysinger
2011-10-15 20:45               ` Joost Roeleveld
2011-10-15  7:33         ` Michał Górny
2011-10-13 14:12     ` Thomas Kahle
2011-10-15  3:37       ` Walter Dnes
2011-10-15  3:47         ` Canek Peláez Valdés
2011-10-12  7:08 ` Markos Chandras
2011-10-12 13:26 ` Rich Freeman
2011-10-12 19:02   ` Mike Frysinger
2011-10-13  2:16   ` [gentoo-dev] " Duncan
2011-10-13  2:43     ` Rich Freeman
2011-10-13 15:17 ` [gentoo-dev] " Olivier Crête
2011-10-13 15:27   ` Mike Frysinger
2011-10-16 18:06 ` Greg KH

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=20111012053204.GE22488@ohnopublishing.net \
    --to=binki@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=waltdnes@waltdnes.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