public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Anybody want to beta test Gentoo with mdev instead of udev?
@ 2011-11-15  6:21 waltdnes
  2011-11-15  7:44 ` Pandu Poluan
                   ` (2 more replies)
  0 siblings, 3 replies; 186+ messages in thread
From: waltdnes @ 2011-11-15  6:21 UTC (permalink / raw
  To: Gentoo Users List

  After a recent thread, about udev developers wanting /usr on the same
partition as / (or else requiring initramfs), it was pretty obvious
that 90%+ of the users here strongly disliked the idea.  I went around
asking on various lists if it was possible to run Gentoo without udev.
After some research, and various unrelated delays, I've come up with a
working Gentoo without udev.  It turns out that busybox's mdev
implementation is sufficient for my needs.  I do the usual email, web
surfing, including Youtube.  I'm listening to Live365.com as I type this
email, so Flash works just fine.  Contrary to the FUD I've heard, X
works just fine, thank you, without an xorg.conf.  Modern flatscreens
with EDID info are set up automatically.  I suppose that old CRT
monitors without EDID info might require xorg.conf, but that's "exotic
hardware" nowadays.  The only change I notice is somewhat faster bootup.

  The purpose of this email is to ask adventurous people here to beta
test my approach to a udev-less Gentoo.  If we don't find any
showstopper problems, we can think about requesting Gentoo developers to
support an mdev-based profile.  It would help the cause if a large
number of testers can report that it works for them.  The instructions
for a udev-ectomy follow below.  Thanks to Zac Medico and others on the
Gentoo developers' list for their helpful hints and pointers on how to
do this.  I couldn't have figured this out by myself.

  The usual warnings apply...
* this is a beta
* use a spare test machine
* if you don't follow the instructions correctly, the result might be
  an unbootable linux
* even if you do follow instructions, the result might be an unbootable
  linux


1) Set up your kernel to support and automount a devtmpfs filesystem at
   /dev

* If you prefer to edit .config directly, set
  CONFIG_DEVTMPFS=y and CONFIG_DEVTMPFS_MOUNT=y

* If you prefer "make menuconfig", the route is as shown below.  Note
  that the "Autount devtmpfs..." option won't appear until you enable
  "Maintain a devtmpf..." option.

make menuconfig
  Device Drivers  --->
    Generic Driver Options  --->
      [*] Maintain a devtmpfs filesystem to mount at /dev
      [*]   Automount devtmpfs at /dev, after the kernel mounted the rootfs

  Once you've made the changes, rebuild the kernel.


2) Set up for emerging busybox, there are 2 items to change

A) It appears that there may be an mdev bug in older versions of
   busybox.  To avoid that bug, keyword busybox-1.19.2 in
   /etc/portage/package.keywords  E.g. if you're using 32-bit Gentoo on
   Intel, the incantation is...

=sys-apps/busybox-1.19.2 ~x86

   Change the "~x86" to reflect your architecture, etc.

B) busybox requires the "mdev" flag in this situation.  The "static"
flag is probably also a good idea.  In file /etc/portage/package.use
add the line

sys-apps/busybox static mdev

   Now, "emerge busybox"


3) In the bootloader append line, include "init=/sbin/linuxrc" where
   the file /sbin/linuxrc consists of *AT LEAST*...

#!/sbin/busybox ash
mount -t proc proc /proc
mount -t sysfs sysfs /sys
exec /sbin/init

   This should be enough for most users.  If you have an unusual setup,
   you may need additional stuff in there.  If you're using lilo remember
   to re-run lilo to implement the changes.

4) Remove udev from the services list, and replace it with mdev.  Type
   the following 2 commands at the command line
rc-update del udev sysinit
rc-update add mdev sysinit


5) reboot to your new kernel.  You're now running without using udev.


6) ***THIS STEP IS OPTIONAL***  This is only to alay any suspicion that
   udev is still in use.  udev is pulled in by virtual/dev-manager,
   which in turn is pulled in by the kernel.
* cd /usr/portage/virtual/dev-manager
* Make a backup copy of dev-manager-0.ebuild
* Edit dev-manager-0.ebuild to include "sys-apps/busybox" as one option
  in RDEPEND, like so...

RDEPEND="|| ( sys-fs/udev
                sys-fs/devfsd
                sys-apps/busybox
                sys-fs/static-dev
                sys-freebsd/freebsd-sbin )"

  I had really wanted to use "sys-apps/busybox[mdev]", but an EAPI-0
  ebuild can't handle that syntax.

* execute the following 3 commands at the commandline
ebuild dev-manager-0.ebuild digest
emerge -1 dev-manager
emerge --unmerge sys-fs/udev

* In file /atc/portage/package.mask, append the line
sys-fs/udev
  Create the file if it doesn't already exist.  You now have a totally
  udev-free machine

-- 
Walter Dnes <waltdnes@waltdnes.org>



^ permalink raw reply	[flat|nested] 186+ messages in thread

end of thread, other threads:[~2012-03-21  0:47 UTC | newest]

Thread overview: 186+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox