Changeset 2471 in MondoRescue


Ignore:
Timestamp:
Nov 10, 2009, 12:57:58 PM (14 years ago)
Author:
Bruno Cornec
Message:

Improve analysis of kernel modules by printing whether it's a live or extra module which has not been found (Matthew Cline) as reported in #362

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/mindi

    r2461 r2471  
    793793### Sq-Mod End
    794794###
    795     for module in $module_list $EXTRA_MODS ; do
     795    # Get rid of duplicates, so that if a live kernel module also appears
     796    # in $EXTRA_MODS that it won't get reported as "live module file not found" twice.
     797    for module in `echo $module_list $EXTRA_MODS | tr ' ' '\n' | sort -u` ; do
    796798        r=`find /lib/modules/$kern -type f | grep "/${module}\..*o" | tail -n1`
     799        if [ -z "$r" ]; then
     800            if [ "`echo "$MODULES" | grep -w $module`" ]; then
     801                r="[live module file not found]"
     802            else
     803                r="[extra module file not found]"
     804            fi
     805        fi
    797806        echo "module $module --> $r" >> $LOGFILE
    798807        [ "$r" ] && echo "$r"
Note: See TracChangeset for help on using the changeset viewer.