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 1SA9i0-000515-98 for garchives@archives.gentoo.org; Wed, 21 Mar 2012 00:47:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 22C75E0A7D; Wed, 21 Mar 2012 00:47:10 +0000 (UTC) Received: from svr-us4.tirtonadi.com (svr-us4.tirtonadi.com [69.65.43.212]) by pigeon.gentoo.org (Postfix) with ESMTP id 3D0A7E075F for ; Wed, 21 Mar 2012 00:45:14 +0000 (UTC) Received: from mail-vx0-f181.google.com ([209.85.220.181]) by svr-us4.tirtonadi.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1SA9ft-001R61-Oe for gentoo-user@lists.gentoo.org; Wed, 21 Mar 2012 07:45:13 +0700 Received: by vcge1 with SMTP id e1so725525vcg.40 for ; Tue, 20 Mar 2012 17:45:10 -0700 (PDT) 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 Received: by 10.220.115.130 with SMTP id i2mr867086vcq.72.1332290710898; Tue, 20 Mar 2012 17:45:10 -0700 (PDT) Received: by 10.220.58.200 with HTTP; Tue, 20 Mar 2012 17:45:10 -0700 (PDT) Received: by 10.220.58.200 with HTTP; Tue, 20 Mar 2012 17:45:10 -0700 (PDT) In-Reply-To: <8799.1332272964@ccs.covici.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> <8799.1332272964@ccs.covici.com> Date: Wed, 21 Mar 2012 07:45:10 +0700 Message-ID: Subject: Re: [gentoo-user] Beta test Gentoo with mdev instead of udev; version 5 From: Pandu Poluan To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=f46d042fdaec8f874904bbb61a9d X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - svr-us4.tirtonadi.com X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - poluan.info X-Archives-Salt: 3a6bc5de-c491-4249-854e-b77ca337cf9c X-Archives-Hash: 5b215a5d67b1c591b9c3980120751cf0 --f46d042fdaec8f874904bbb61a9d Content-Type: text/plain; charset=UTF-8 On Mar 21, 2012 2:52 AM, wrote: > > 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? > The creation of device nodes mostly are done by the devtmpfs of the kernel. I recommend the linuxrc to look like this : #!/bin/busybox ash mount -t proc proc /proc mount -t sysfs sysfs /sys echo /bin/mdev > /proc/sys/kernel/hotplug /bin/mdev -s exec /sbin/init Before booting, ensure /bin/mdev exists and is a symlink to /bin/busybox. The rest, just follow the steps outlined by waltdnes Rgds, --f46d042fdaec8f874904bbb61a9d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Mar 21, 2012 2:52 AM, <covic= i@ccs.covici.com> wrote:
>
> Daddy <daddy@hap= pypenguincomputers.com> wrote:
>
> > On March 11, 2012 at 5:09 AM Walter Dnes <waltdnes@waltdnes.org> wrote:
> >
> > > =C2=A0 This revision makes 2 changes...
> > >
> > > A) The removal of udev is now standard instead of optional. = =C2=A0udev-181
> > > and higher will be pulling in kmod, and anything else that k= mod depends
> > > on. =C2=A0Removing 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.
> > >
> > > =C2=A0 The usual warnings apply...
> > > * this is a beta
> > > * use a spare test machine
> > > * if you don't follow the instructions correctly, the re= sult might be
> > > =C2=A0 an unbootable linux
> > > * even if you do follow instructions, the result might be an= unbootable
> > > =C2=A0 linux
> > >
> > >
> > > 1) Set up your kernel to support and automount a devtmpfs fi= lesystem at
> > > =C2=A0 =C2=A0/dev
> > >
> > > * If you prefer to edit .config directly, set
> > > =C2=A0 CONFIG_DEVTMPFS=3Dy and CONFIG_DEVTMPFS_MOUNT=3Dy
> > >
> > > * If you prefer "make menuconfig", the route is as= shown below. =C2=A0Note
> > > =C2=A0 that the "Autount devtmpfs..." option won&#= 39;t appear until you enable
> > > =C2=A0 "Maintain a devtmpf..." option.
> > >
> > > make menuconfig
> > > =C2=A0 Device Drivers =C2=A0--->
> > > =C2=A0 =C2=A0 Generic Driver Options =C2=A0--->
> > > =C2=A0 =C2=A0 =C2=A0 [*] Maintain a devtmpfs filesystem to m= ount at /dev
> > > =C2=A0 =C2=A0 =C2=A0 [*] =C2=A0 Automount devtmpfs at /dev, = after the kernel mounted the
> > rootfs
> > >
> > > =C2=A0 Once you've made the changes, rebuild the kernel.=
> > >
> > >
> > > 2) Set up for emerging busybox. =C2=A0busybox requires the &= quot;mdev" flag in
> > > this situation. =C2=A0The "static" flag is probabl= y also a good idea. =C2=A0In
> > > file /etc/portage/package.use add the line
> > >
> > > sys-apps/busybox static mdev
> > >
> > > =C2=A0 =C2=A0Now, "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
> > >
> > > =C2=A0 This should be enough for most users. =C2=A0If you ha= ve an unusual setup,
> > > you may need additional stuff in there. =C2=A0Remember to > > > "chmod 744 /sbin/linuxrc" to make it executable. > > >
> > > =C2=A0In the bootloader "append" line, include &qu= ot;init=3D/sbin/linuxrc". =C2=A0If
> > > you're using lilo remember to re-run lilo to implement t= he changes. =C2=A0If
> > > you're using another bootloader, make the equivalant ini= tialization.
> > >
> > >
> > > 4) Remove udev from the services list, and replace it with m= dev. =C2=A0Type
> > > =C2=A0 =C2=A0the following 2 commands at the command line > > > rc-update del udev sysinit
> > > rc-update add mdev sysinit
> > >
> > >
> > > 5) reboot to your new kernel. =C2=A0You're now running w= ithout 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
> > > =C2=A0 Create the file if it doesn't already exist. =C2= =A0You now have a totally
> > > udev-free machine
> > >
> > > --
> > > Walter Dnes <wal= tdnes@waltdnes.org>
> > >
> >
> > 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<= br> > more about this before I take the plunge. =C2=A0So where do I get it a= nd does
> it create the appropriate device nodes, etc?
>

The creation of device nodes mostly are done by the devtmpfs of the kern= el. I recommend the linuxrc to look like this :

#!/bin/busybox ash
mount -t proc proc /proc
mount -t sysfs sysfs /sys
echo /bin/mdev > /proc/sys/kernel/hotplug
/bin/mdev -s
exec /sbin/init

Before booting, ensure /bin/mdev exists and is a symlink to /bin/busybox= .

The rest, just follow the steps outlined by waltdnes

Rgds,

--f46d042fdaec8f874904bbb61a9d--