kmod: Remove an unnecessary command and adjust the description

/usr/bin/lsmod is already created by the building system.
This commit is contained in:
Xi Ruoyao 2024-03-14 22:53:21 +08:00
parent 9ac55efa5e
commit e7231421fd
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -84,18 +84,19 @@
(not the <quote>sanitized</quote> kernel headers installed earlier),
which are beyond the scope of LFS.</para>
<para>Install the package and create symlinks for
<para>Install the package and recreate some symlinks for
compatibility with Module-Init-Tools (the package that previously handled
Linux kernel modules):</para>
Linux kernel modules) in
<filename class='directory'>/usr/sbin</filename> instead of
<filename class='directory'>/usr/bin</filename> (where the building
system will create these symlinks):</para>
<screen><userinput remap="install">make install
for target in depmod insmod modinfo modprobe rmmod; do
ln -sfv ../bin/kmod /usr/sbin/$target
rm -fv /usr/bin/$target
done
ln -sfv kmod /usr/bin/lsmod</userinput></screen>
done</userinput></screen>
</sect2>