📜 ⬆️ ⬇️

[archlinux testing news] MIT is not needed. Long live kmod-3!

Kmod-3 has just appeared in testing, which is a replacement for module-init-tools. The project is still quite young, but it already has a lot of supporters, and the archa has been developed closely with upstreamers in order to find and edit bugs.

In short, kmod does the same thing as mit, but much faster. This will help speed up booting with udev and systemd.


')
By and large, you should not notice any difference. kmod is designed as a direct replacement for mit, and almost all binaries should have the same options as mit. Where possible, outdated options and features thrown out, for example:

- reading depmod / modprobe config from files that do not end with .conf
- the -l and --list options for modprobe

IMPORTANT : /etc/modprobe.d/modprobe.conf is no longer part of the package. This means that if you have written something to this file, it will be zapaksaven simultaneously with the removal of mit, and you must rename it. What was previously called /etc/depmod.d/depmod.conf will be saved in the new package, but will be renamed to /lib/depmod.d/search.conf. This file will be read-only — users will need to add their own add-ins to /etc/depmod.d.

One more thing that you will most likely notice is that kmod does not yet have mana. Manteiners do not consider this a special minus - mans mit did not provide complete information, exactly like their command line. The kmod binaries fully explain all their parameters with -h and --help.

Plus, there is a corresponding mkinitcpio update that improves the readability of modprobe and depmod. However, you do not need to update the initramfs images if you do not want to.

STABILITY . Initially, the installation of this thing caused chaos, and I had to sit at the initrd console for an hour and fix everything back. Installing the package led to the fact that when modprobe was launched from udev, some modules were not randomly loaded, or were loaded incorrectly. The mouse (uhci_hcd), hard drives (ahci at boot), and so on fell off.

The situation was quickly corrected by the release of several patches. The last kmod of testing is completely safe for installation and testing.

However, just in case, remember the solution to the problem with falling off modules: if you have broken everything to hell, run the following command several times (this can be done even from the initrd environment):

udevadm trigger

Happy new updates, gentlemen!

Source: https://habr.com/ru/post/135769/


All Articles