Package: module-init-tools Version: 3.2-pre1-2 Tags: patch When I have / mounted read-only the /etc/init.d/module-init-tools initscript attempts to update the module dependencies - causing it to fail. The expected behaviour is to skip updating the module dependencies and to load the modules specified in /etc/modules.
The cause is the test in the script to see if /lib/modules/$KVER is writable will always be true when running as root - which the initscript is. In the attached patch after this check it attempts to touch the modules directory giving an accurate test of writability. I am using Debian GNU/Linux 3.1, kernel 2.6.8-2-386, libc 2.3.2.dsl-22 and have / mounted read-only.
--- module-init-tools_ORIG 2006-03-22 09:18:34.000000000 +1200 +++ module-init-tools_FIXED 2006-03-22 09:23:24.000000000 +1200 @@ -11,7 +11,7 @@ KMAJ=${KVER%${KVER#*.*[^.]}} KMAJ=${KMAJ%.} -if [ -w /lib/modules/$KVER/ ]; then +if [ -w /lib/modules/$KVER/ ] && touch /lib/modules/$KVER 2>/dev/null; then echo -n "Calculating module dependencies... " depmod --quick echo "done."