[arch-general] [PATCH] depmod: do not update module dependencies on boot
teg at jklm.no
Wed Feb 23 20:03:27 EST 2011
I'm looking through initscripts to make sure systemd is compatible. In
doing so I think I ran across the following possible simplification of
Comments? I'd be especially interested in hearing about usecases where
the attached patch would lead to regressions.
Running depmod on boot should not be necessary as the packages
installing modules should be responsible for updating the dependencies
themselves (and they do, at least the packages I looked through).
Furthermore, as modules can be loaded very early in boot (by e.g.
udev), but depmod can only be called after root is mounted rw, we can
not rely on depmod fixing broken module dependencies.
Signed-off-by: Tom Gundersen <teg at jklm.no>
rc.sysinit | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/rc.sysinit b/rc.sysinit
index 1dfae33..dfb0050 100755
@@ -351,8 +351,6 @@ if [[ $NISDOMAINNAME ]]; then
status "Setting NIS Domain Name: $NISDOMAINNAME"
-status "Updating Module Dependencies" /sbin/depmod -A
# Flush old locale settings
: >| /etc/profile.d/locale.sh
/bin/chmod 755 /etc/profile.d/locale.sh
More information about the arch-general