Gentoo Archives: gentoo-user

From: Daddy <daddy@×××××××××××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Beta test Gentoo with mdev instead of udev; version 5
Date: Sun, 11 Mar 2012 11:28:23
Message-Id: 499847436.525568.1331465225324.JavaMail.open-xchange@email.1and1.com
In Reply to: [gentoo-user] Beta test Gentoo with mdev instead of udev; version 5 by Walter Dnes
1 On March 11, 2012 at 5:09 AM Walter Dnes <waltdnes@××××××××.org> wrote:
2
3 > This revision makes 2 changes...
4 >
5 > A) The removal of udev is now standard instead of optional. udev-181
6 > and higher will be pulling in kmod, and anything else that kmod depends
7 > on. Removing udev will avoid unnecessary cruft on your machine.
8 >
9 > B) Splitting up step 3) into 3a) and 3b) for greater clarity as
10 > requested in user feedback.
11 >
12 > The usual warnings apply...
13 > * this is a beta
14 > * use a spare test machine
15 > * if you don't follow the instructions correctly, the result might be
16 > an unbootable linux
17 > * even if you do follow instructions, the result might be an unbootable
18 > linux
19 >
20 >
21 > 1) Set up your kernel to support and automount a devtmpfs filesystem at
22 > /dev
23 >
24 > * If you prefer to edit .config directly, set
25 > CONFIG_DEVTMPFS=y and CONFIG_DEVTMPFS_MOUNT=y
26 >
27 > * If you prefer "make menuconfig", the route is as shown below. Note
28 > that the "Autount devtmpfs..." option won't appear until you enable
29 > "Maintain a devtmpf..." option.
30 >
31 > make menuconfig
32 > Device Drivers --->
33 > Generic Driver Options --->
34 > [*] Maintain a devtmpfs filesystem to mount at /dev
35 > [*] Automount devtmpfs at /dev, after the kernel mounted the
36 rootfs
37 >
38 > Once you've made the changes, rebuild the kernel.
39 >
40 >
41 > 2) Set up for emerging busybox. busybox requires the "mdev" flag in
42 > this situation. The "static" flag is probably also a good idea. In
43 > file /etc/portage/package.use add the line
44 >
45 > sys-apps/busybox static mdev
46 >
47 > Now, "emerge busybox"
48 >
49 >
50 > 3 a) Create /sbin/linuxrc containing at least
51 >
52 > #!/bin/busybox ash
53 > mount -t proc proc /proc
54 > mount -t sysfs sysfs /sys
55 > exec /sbin/init
56 >
57 > This should be enough for most users. If you have an unusual setup,
58 > you may need additional stuff in there. Remember to
59 > "chmod 744 /sbin/linuxrc" to make it executable.
60 >
61 > In the bootloader "append" line, include "init=/sbin/linuxrc". If
62 > you're using lilo remember to re-run lilo to implement the changes. If
63 > you're using another bootloader, make the equivalant initialization.
64 >
65 >
66 > 4) Remove udev from the services list, and replace it with mdev. Type
67 > the following 2 commands at the command line
68 > rc-update del udev sysinit
69 > rc-update add mdev sysinit
70 >
71 >
72 > 5) reboot to your new kernel. You're now running without using udev.
73 >
74 >
75 > 6) Remove udev as per the following instructions...
76 >
77 > * execute the following command at the commandline
78 > emerge --unmerge sys-fs/udev
79 >
80 > * In file /atc/portage/package.mask, append the line
81 > sys-fs/udev
82 > Create the file if it doesn't already exist. You now have a totally
83 > udev-free machine
84 >
85 > --
86 > Walter Dnes <waltdnes@××××××××.org>
87 >
88
89 Having personally long considered Lennart Poettering a 'spawn of the devil'
90 my question is ... is this your reaction to systemd?
91
92 One minor typo to point out:
93
94 /atc/portage/package.mask should be /etc/portage/package.mask
95
96 I just joined this list last week, but might consider sacrificing some
97 hardware to join your endeavor if you need more testers.
98
99 Kindest regards,
100 Bruce

Replies