[PATCH] here comes udev 181 and his refreshed fellows: kernel-reqs kmod linux lunar-init

Zbigniew Luszpinski zbiggy at o2.pl
Sun Mar 4 20:59:12 CET 2012


Hello,

here is latest udev 181. Among many cool improvements these are especially 
nice:
* Lunar (in these modules) now follows the new Linux/Unix fasion to 
install everything OS related to /usr and provide symlinks to legacy dirs 
like /lib /sbin /bin for example.
* no more static nodes, when you turn off Lunar - the /dev dir is empty
* now kernel auto generates and manages _every_ device in /dev - udev only 
sets permissions.
* boots faster
Requirements:
* correctly configured kernel 2.6.34 or greater is a must (udev pre_build 
will check everything for you so do not afraid - it will not start 
building if something is old/missing - I really put much effort here to 
have it safe)
* kmod 5 or later is required so good bye to module-init-tools and other
(do not worry - I moved all Lunar cool things from them to kmod)
* discovery module is not compatibile with kmod so better remove it:
lrm discovery discovery-data
(it warns about missing modprobe -l parameter during boot which looks 
ugly) kernel autoloads modules for devices so this is not big loss
the rest you can put into /etc/modules which in default kmod do not work 
but with this one attached yes.

How to install without troubles:
1. unpack somewhere attached tarball
2. cd udev-181-modules
2. move content of udev-181-modules to /var/lib/lunar/moonbase/zlocal/
3. patch -p0 < depcachefix.patch
(without this patch your linux* module will be asking you to remove kmod 
because it wants to install module-init-tools. You can not remove kmod 
because new udev requires it. New linux module depends on kmod but it 
still asks for module-init-tools because this old dependency is cached in 
depends.cache. After this patch when linux still asks for module-init-
tools do lin -r linix to clean depends cache and start using kmod 
dependency.
4. patch -p0 < kernel-fix.patch
(without my patch udev will always break at pre_build because it can not 
check properly kernel .config).
5. lin udev
6. lin lunar-init
(you have to lin udev and lunar-init - otherwise Lunar will not boot with 
new udev!)

optional things provided for safe future with udev:

linux - now depends on kmod so do not require module-init-tools which 
conflicts with kmod required by new udev. Uses also new kernel-reqs - see 
below. I know about %alias but it makes no sense with new udev you have to 
have.

kernel-reqs - this rewritten module fixes bug in Lunar I hate:
Now when you update linux module it will execute in post install kernel-
reqs module which will build modules for the _currently_running_ kernel. 
This is crazy because we alredy have these modules build and running.
Thanks to this rewritten linux module and kernel-reqs module Lunar will 
build kernel-reqs when Lunar discovers on boot that you boot a kernel 
without kernel-reqs build. Before using it apply patch:
patch -p0 < kernel-reqs.patch
to skip red ugly warnings during build that you do not run user shell.

If Lunar detects on boot that you boot fresh kernel it will autobuild 
kernel-reqs during boot and reboot after build to boot new kernel with all 
modules autoloaded by kernel. I love this - do not have to remeber to lin 
kernel-reqs after booting new kernel anymore.

have a nice day,
Zbigniew Luszpinski
-------------- next part --------------
A non-text attachment was scrubbed...
Name: udev-181-modules.tar.bz2
Type: application/x-bzip-compressed-tar
Size: 8848 bytes
Desc: not available
URL: <http://foo-projects.org/pipermail/lunar-dev/attachments/20120304/5c9ad017/attachment.bin>


More information about the Lunar-dev mailing list