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 1RyXTP-0004BU-GO for garchives@archives.gentoo.org; Fri, 17 Feb 2012 23:44:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C7060E08F9; Fri, 17 Feb 2012 23:44:06 +0000 (UTC) Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 7E984E08C6 for ; Fri, 17 Feb 2012 23:42:56 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjIGADvlPk/O+LC3/2dsb2JhbAA9BrEhgQWBCIF2AQUnExwzCzQSFCUkE74MiUqCJRcbBQEOEAgCAgIFG2qCVAMHBAIBBQIBAwMgglFjBIhOhQeHYYVtiECEWg X-IronPort-AV: E=Sophos;i="4.73,441,1325480400"; d="scan'208";a="163477492" Received: from 206-248-176-183.dsl.teksavvy.com (HELO waltdnes.org) ([206.248.176.183]) by ironport2-out.teksavvy.com with SMTP; 17 Feb 2012 18:42:54 -0500 Received: by waltdnes.org (sSMTP sendmail emulation); Fri, 17 Feb 2012 18:40:45 -0500 From: "Walter Dnes" Date: Fri, 17 Feb 2012 18:40:45 -0500 To: Gentoo Users List Subject: Re: [gentoo-user] Re: Beta test Gentoo with mdev instead of udev; version 4 Message-ID: <20120217234045.GA25390@waltdnes.org> References: <20111115062115.GA3262@waltdnes.org> <20111121104724.GC7461@waltdnes.org> <20111201194544.GD4455@waltdnes.org> 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 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111201194544.GD4455@waltdnes.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: d069d8e0-b4c5-4544-95f4-4b506a111b5b X-Archives-Hash: 03ac3a294bf1e0eeee693a46af62580a This revision removes a couple of steps in the process, so there's less stuff involved. If only software developers worked that way . * Busybox stable is now past the buggy version that didn't work with mdev. There is no need to keyword version 1.19.2 * The virtual/dev-manager-0.ebuild has been modified as per my feature request to support an mdev-based system. There is no longer any need for a customized/hacked ebuild in an overlay 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) In the bootloader append line, include "init=/sbin/linuxrc" where the file /sbin/linuxrc consists of *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. 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. * 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