Back to wiki start page Categories: Development
Jose V Beneyto
This document explains how to replace udev in CRUX with mdev.
$ rsync -aqz sepen.it.cx::ports/crux-2.7/sepen/mdev/ mdev
# sed 's|start_udev|start_mdev|' -i /etc/rc
#!/bin/bash # # /etc/rc.modules: module initialization script # /sbin/depmod -a # auto-load kernel modules /usr/bin/find /sys -name 'modalias' -type f -exec /usr/bin/sort -u {} \; \ | /usr/bin/xargs /sbin/modprobe -b -a 2>/dev/null # End of file
At this point you can safely remove udev
# pkgrm udev
Build the package without udev support
$ rsync -aqz sepen.it.cx::ports/crux-2.7/sepen/libdevmapper/ libdevmapper
/bin/lsblk is compiled and linked against udev
$ ldd /bin/lsblk | grep libudev libudev.so.0 => /lib/libudev.so.0 (0xb784b000)
/usr/lib/egl/egl_dri2.so is compiled and linked against udev
$ ldd /usr/lib/egl/egl_dri2.so libudev.so.0 => /lib/libudev.so.0 (0xb784b000)
/usr/bin/Xorg is compiled and linked against udev
$ ldd /usr/bin/Xorg | grep libudev libudev.so.0 => /lib/libudev.so.0 (0xb784b000)
note that /etc/X11/xorg.conf.d/10-evdev.conf dissapeared (evdev requires udev to work)
Since xorg-xf86-input-evdev needs udev to be built then you should use xorg-xf86-input-keyboard and xorg-xf86-input-mouse instead.