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!
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!
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
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
|
DetailsCurrently `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
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.