I recently switched off initrd. Some modules were loaded no more. The reason is the way /etc/init.d/modules treates slashes.
The header in /etc/modules.autoload says about comments:
" Add the names of modules that you'd like to load when the system starts into this file, one per line. Comments begin with # and are ignored. Read man modules.autoload for additional details.
It should warn not to add any slashes after module parameters.
For example if in /etc/modules.autoload I have:
modulename moduleparameter # comment
init scripts try to modprobe the whole line (so module fail to load).
Alternatively I propose a patch for /etc/init.d/modules to cut off everything following a slash; hoping this will not break any policies.
Created attachment 55838 [details, diff]
awk simple trick
Typo: sorry, I was speaking about hashes "#", not slashes "/"
*** Bug 88898 has been marked as a duplicate of this bug. ***
what about this change instead:
- sub(/^[[:space:]]*[^[:space:]]*[[:space:]]*/, "")
+ sub(/^[[:space:]]*[^[:space:]#]*[[:space:]]*/, "")
does that work for you ?
unfortunately this doesn't work for me, I've tried various combinations:
yeah, that doesnt work, but this does:
+ sub(/#.*$/, "")
ARGS[COUNT] = $0
i'll add this to cvs