Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#777 - rc.sysinit patch: use depmod -A

Attached to Project: Arch Linux
Opened by Indan Zupancic (i3839) - Sunday, 18 April 2004, 16:40 GMT
Last edited by Judd Vinet (judd) - Sunday, 18 April 2004, 18:19 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Currently `find` is used to check for new modules and if there are any found, depmod -a is run. With the new depmod that isn't necessary anymore, because the -A option does exactly the same.

The diff (I hope it displays not too badly):

--- rc.sysinit 2004-04-18 18:09:00.000000000 +0200
+++ rc.sysinit 2004-04-18 18:25:02.000000000 +0200
@@ -104,15 +104,7 @@
status "Setting Hostname: $HOSTNAME" /bin/hostname $HOSTNAME
fi

-kernel_version=`uname -r`
-if [ -e "/lib/modules/$kernel_version/modules.dep" ]; then
- new_mods=`/usr/bin/find /lib/modules/$kernel_version -type f -newer /lib/modules/$kernel_version/modules.dep`
- if [ ! -z "$new_mods" ]; then
- status "Updating Module Dependencies" /sbin/depmod -a
- fi
-else
- status "Updating Module Dependencies" /sbin/depmod -a
-fi
+status "Updating Module Dependencies" /sbin/depmod -A

if [ -f /var/run/random-seed ]; then
stat_busy "Initializing Random Seed"
This task depends upon

Closed by  Judd Vinet (judd)
Tuesday, 28 September 2004, 06:24 GMT
Reason for closing:  Implemented
Comment by Indan Zupancic (i3839) - Sunday, 18 April 2004, 23:02 GMT
After some testing it seems that depmod -A takes more or less as long as the current way. The difference in speed is too small to have any impact, although I don't know which way is faster with the default Arch kernel, which has a lot modules, I tested it with my custom kernel with not that many modules. I don't expect a big speed difference between the two though.

Loading...