On 02/11/2023 19:06, Alessandro Selli via lpi-examdev wrote:
On 02/11/23 19:18, Éric Deschamps via lpi-examdev wrote:
Hello,
Le 25/10/2023 à 10:26, Werner Heuser via lpi-examdev a écrit :
Hi,
here are my 2 cents:
https://wiki.lpi.org/wiki/LPIC-2_Objectives_V5.0#Objectives:_Exam_201
<https://wiki.lpi.org/wiki/LPIC-2_Objectives_V5.0#Objectives:_Exam_201>
201.1
remove rmmod, insmod because modprobe can do better
remove udevmonitor - udevadm monitor can do
I totally agree
I beg to differ here.
Debian, package kmod 30+20221128-1:
lrwxrwxrwx 1 root root 9 10 dic 2022 /sbin/modprobe -> /bin/kmod
lrwxrwxrwx 1 root root 9 10 dic 2022 /sbin/rmmod -> /bin/kmod
lrwxrwxrwx 1 root root 9 10 dic 2022 /sbin/modinfo -> /bin/kmod
lrwxrwxrwx 1 root root 9 10 dic 2022 /sbin/insmod -> /bin/kmod
lrwxrwxrwx 1 root root 4 10 dic 2022 /usr/bin/lsmod -> kmod
Rocky Linux, package kmod-25-19.el8.x86_64:
lrwxrwxrwx. 1 root root 11 18 apr 2022 /usr/sbin/modprobe -> ../bin/kmod
lrwxrwxrwx. 1 root root 11 18 apr 2022 /usr/sbin/rmmod -> ../bin/kmod
lrwxrwxrwx. 1 root root 11 18 apr 2022 /usr/sbin/modinfo -> ../bin/kmod
lrwxrwxrwx. 1 root root 11 18 apr 2022 /usr/sbin/insmod -> ../bin/kmod
lrwxrwxrwx. 1 root root 11 18 apr 2022 /usr/sbin/lsmod -> ../bin/kmod
Why should just modprobe be retained?
Modprobe command does the same as insmod (insert a module) and rmmod
(remove a module), but it has support for dependencies tracking, so you
would need to insert multiple modules with insmod to start a feature but
with modprobe you just need to load a module and the dependencies will
come together. The same with removing a module with "modprobe -r".
I don't think kmod is used directly for anything. I think is justa
binary umbrella for the other commands.
Also modinfo (to show modules information) and lsmod (list the loaded
modules) aren't replaced by modprobe.
It is not accurate to state that "modprobe can do better" because it is
not modprobe that actually does the work, it's kmod.
If modprobe must be retained because of it's historical significance,
then I think that lsmod, modinfo and rmmod must be retained for the same
reason.
Otherwise it's kmod that should be on the stage basking in the limelight.
Alessandro
_______________________________________________
lpi-examdev mailing list
[email protected]
https://list.lpi.org/mailman/listinfo/lpi-examdev
--
Marcos Alano
_______________________________________________
lpi-examdev mailing list
[email protected]
https://list.lpi.org/mailman/listinfo/lpi-examdev