From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SA554-0003Kh-E5 for garchives@archives.gentoo.org; Tue, 20 Mar 2012 19:50:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3B644E090A; Tue, 20 Mar 2012 19:50:45 +0000 (UTC) Received: from s-out-001.smtp25.com (s-out-001.smtp25.com [67.228.91.90]) by pigeon.gentoo.org (Postfix) with ESMTP id 1D0D7E090A for ; Tue, 20 Mar 2012 19:49:29 +0000 (UTC) Received: from ccs.covici.com (pool-96-247-198-116.clppva.fios.verizon.net [96.247.198.116]) by s-out-001.smtp25.com (8.14.2/8.14.2) with ESMTP id q2KJnSIT017753 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 20 Mar 2012 15:49:29 -0400 Received: from ccs.covici.com (localhost [127.0.0.1]) by ccs.covici.com (8.14.5/8.14.4) with ESMTP id q2KJnOQF008800 for ; Tue, 20 Mar 2012 15:49:28 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Beta test Gentoo with mdev instead of udev; version 5 In-reply-to: <499847436.525568.1331465225324.JavaMail.open-xchange@email.1and1.com> References: <20111115062115.GA3262@waltdnes.org> <20111121104724.GC7461@waltdnes.org> <20111201194544.GD4455@waltdnes.org> <20120217234045.GA25390@waltdnes.org> <20120311090912.GA23850@waltdnes.org> <499847436.525568.1331465225324.JavaMail.open-xchange@email.1and1.com> Comments: In-reply-to Daddy message dated "Sun, 11 Mar 2012 07:27:05 -0400." X-Mailer: MH-E 8.2; nmh 1.3; GNU Emacs 23.4.2 Date: Tue, 20 Mar 2012 15:49:24 -0400 Message-ID: <8799.1332272964@ccs.covici.com> From: covici@ccs.covici.com X-SpamH-OriginatingIP: 96.247.198.116 X-SpamH-Filter: s-out-001.smtp25.com-q2KJnSIT017753 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Archives-Salt: b01c2daf-8c33-42ff-9117-42fba88edd8d X-Archives-Hash: ad3b5fb4c804dd379e8b464db7b2c475 Daddy wrote: > On March 11, 2012 at 5:09 AM Walter Dnes wrote: > > > This revision makes 2 changes... > > > > A) The removal of udev is now standard instead of optional. udev-181 > > and higher will be pulling in kmod, and anything else that kmod depends > > on. Removing udev will avoid unnecessary cruft on your machine. > > > > B) Splitting up step 3) into 3a) and 3b) for greater clarity as > > requested in user feedback. > > > > 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. 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 a) Create /sbin/linuxrc containing at least > > > > #!/bin/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. Remember to > > "chmod 744 /sbin/linuxrc" to make it executable. > > > > In the bootloader "append" line, include "init=/sbin/linuxrc". If > > you're using lilo remember to re-run lilo to implement the changes. If > > you're using another bootloader, make the equivalant initialization. > > > > > > 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) Remove udev as per the following instructions... > > > > * execute the following command at the commandline > > 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 > > > > Having personally long considered Lennart Poettering a 'spawn of the devil' > my question is ... is this your reaction to systemd? > > One minor typo to point out: > > /atc/portage/package.mask should be /etc/portage/package.mask > > I just joined this list last week, but might consider sacrificing some > hardware to join your endeavor if you need more testers. OK, I am not seeing mdev in the portage tree -- I would like to learn more about this before I take the plunge. So where do I get it and does it create the appropriate device nodes, etc? -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com