Small bug in mkinitrd in slackware 13.37
Hi Slack maintainers,
After installing Slack 13.37 on one of my systems while using my own (non-standard) kernel it refused to boot as the harddisk couldn't be found anymore. Investigation yielded that the ahci.ko driver wasn't loaded (but libahci.ko was).
However I listed both ahci.ko and libahci.ko in the mkinitrd -m parameter so there had to be an error in the new /sbin/mkinitrd script.
It turned out that a grep at the end of the script weeded out my ahci.ko module as the searchterm "ahci.ko" was already detected in the modprobe line for libahci.ko.
I decided to fix it in an easy way : I just prepend a "space" in front of the module name at the line where the grep is called :
OLD:
if ! grep -q "$(basename $SRCMOD .ko)" $SOURCE_TREE/load_kernel_modules 2>/dev/null ; then
NEW:
if ! grep -q "\ $(basename $SRCMOD .ko)" $SOURCE_TREE/load_kernel_modules 2>/dev/null ; then
This fixed all problems and now the system boots fine again.
Could this be incorporated in the standard Slack mkinitrd script ?
Thanks in advance (also for making Slack Leet available ;-) )
Regards,
Kees Lemmens.
|