1 |
On Feb 18, 2012 6:46 AM, "Walter Dnes" <waltdnes@××××××××.org> wrote: |
2 |
> |
3 |
> This revision removes a couple of steps in the process, so there's |
4 |
> less stuff involved. If only software developers worked that way <G>. |
5 |
> |
6 |
> * Busybox stable is now past the buggy version that didn't work with |
7 |
> mdev. There is no need to keyword version 1.19.2 |
8 |
> |
9 |
> * The virtual/dev-manager-0.ebuild has been modified as per my feature |
10 |
> request to support an mdev-based system. There is no longer any need |
11 |
> for a customized/hacked ebuild in an overlay |
12 |
> |
13 |
> The usual warnings apply... |
14 |
> * this is a beta |
15 |
> * use a spare test machine |
16 |
> * if you don't follow the instructions correctly, the result might be |
17 |
> an unbootable linux |
18 |
> * even if you do follow instructions, the result might be an unbootable |
19 |
> linux |
20 |
> |
21 |
> |
22 |
> 1) Set up your kernel to support and automount a devtmpfs filesystem at |
23 |
> /dev |
24 |
> |
25 |
> * If you prefer to edit .config directly, set |
26 |
> CONFIG_DEVTMPFS=y and CONFIG_DEVTMPFS_MOUNT=y |
27 |
> |
28 |
> * If you prefer "make menuconfig", the route is as shown below. Note |
29 |
> that the "Autount devtmpfs..." option won't appear until you enable |
30 |
> "Maintain a devtmpf..." option. |
31 |
> |
32 |
> make menuconfig |
33 |
> Device Drivers ---> |
34 |
> Generic Driver Options ---> |
35 |
> [*] Maintain a devtmpfs filesystem to mount at /dev |
36 |
> [*] Automount devtmpfs at /dev, after the kernel mounted the 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) In the bootloader append line, include "init=/sbin/linuxrc" where |
51 |
> the file /sbin/linuxrc consists of *AT LEAST*... |
52 |
> |
53 |
> #!/bin/busybox ash |
54 |
> mount -t proc proc /proc |
55 |
> mount -t sysfs sysfs /sys |
56 |
> exec /sbin/init |
57 |
> |
58 |
> This should be enough for most users. If you have an unusual setup, |
59 |
> you may need additional stuff in there. If you're using lilo remember |
60 |
> to re-run lilo to implement the changes. |
61 |
> |
62 |
> 4) Remove udev from the services list, and replace it with mdev. Type |
63 |
> the following 2 commands at the command line |
64 |
> rc-update del udev sysinit |
65 |
> rc-update add mdev sysinit |
66 |
> |
67 |
> |
68 |
> 5) reboot to your new kernel. You're now running without using udev. |
69 |
> |
70 |
> |
71 |
> 6) ***THIS STEP IS OPTIONAL*** This is only to alay any suspicion that |
72 |
> udev is still in use. |
73 |
> |
74 |
> * execute the following command at the commandline |
75 |
> emerge --unmerge sys-fs/udev |
76 |
> |
77 |
> * In file /atc/portage/package.mask, append the line |
78 |
> sys-fs/udev |
79 |
> Create the file if it doesn't already exist. You now have a totally |
80 |
> udev-free machine |
81 |
> |
82 |
|
83 |
Thanks for the update! |
84 |
|
85 |
I've been mdev-ing my servers, and no problems whatsoever until now (touch |
86 |
wood!). |
87 |
|
88 |
For those still on the sidelines re: mdev-for-udev, be aware that progress |
89 |
is happening rapidly with regards to what udev feature is 'vital' for |
90 |
modern systems. |
91 |
|
92 |
Heck, mdev is already perfect for my needs: it can rename devices, fire up |
93 |
a script on hotplug/hotunplug events, load a firmware if told so by the |
94 |
kernel... |
95 |
|
96 |
I suggest interested people should at least lurk in the busybox mailing |
97 |
list. The mdev-for-udev discussion us quite fresh, patches (not bloats) |
98 |
have been submitted... and we have our very own Walt Dnes in that list, |
99 |
proudly waving the Gentoo banner ;-) |
100 |
|
101 |
Rgds, |