Changeset 2829


Ignore:
Timestamp:
Jun 11, 2011, 7:33:09 AM (8 years ago)
Author:
bruno
Message:

r4157@localhost: bruno | 2011-06-11 06:41:14 +0200

  • Attempt to fix Xen kernel support by avoiding to remove xen kernel fro; the possible_kernels list too early, whereas it's used afterwards to get them.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/mindi

    r2828 r2829  
    22902290        fi
    22912291    fi
    2292     possible_kernels=`echo "$possible_kernels" | tr -s ' ' '\n' | grep -vi "xen" | sort -u | tr '\n' ' '`
    2293     noof_kernels=`CountItemsIn "$possible_kernels"`
    22942292    if [ $KERNEL_IS_XEN = "yes" ]; then
    22952293        possible_xenkernels=`echo "$possible_kernels" | tr -s ' ' '\n' | grep -i "xen" | sort -u | tr '\n' ' '`
     
    22972295        FindMboot32Binary
    22982296    fi
     2297    possible_kernels=`echo "$possible_kernels" | tr -s ' ' '\n' | grep -vi "xen" | sort -u | tr '\n' ' '`
     2298    noof_kernels=`CountItemsIn "$possible_kernels"`
    22992299    if [ "$noof_kernels" -eq "0" ] ; then
    23002300        LogIt "Could not find your kernel."
     
    23132313            if echo $i | grep "$KERVERRUN" ; then
    23142314                LogIt "OK, I used my initiative and found that "
    2315                 LogIt "$i is probably your kernel. "
     2315                    LogIt "$i is probably your kernel. "
    23162316                output="$i"
    23172317            fi
     
    23372337        else
    23382338            for i in $possible_xenkernels ; do
    2339                 if echo $i | grep "$KERVERRUN" ; then
     2339                    if echo $i | grep "$KERVERRUN" ; then
    23402340                    LogIt "OK, I used my initiative and found that "
    2341                     LogIt "$i is probably your Xen kernel. "
     2341                        LogIt "$i is probably your Xen kernel. "
    23422342                    xenkernelpath="$i"
    23432343                fi
     
    23492349                    LogIt "Using $xenkernelpath"
    23502350                else
    2351                     LogIt "Two or more possible Xen kernels found. You may specify any one of them and the "
     2351                        LogIt "Two or more possible Xen kernels found. You may specify any one of them and the "
    23522352                    LogIt "boot disks will still work, probably. If one does not work, try another."
    2353                     LogIt "$possible_xenkernels"
     2353                        LogIt "$possible_xenkernels"
    23542354                    echo ""
    23552355                    xenkernelpath=`echo $possible_xenkernels | tr -s ' ' '\n' | head -1`
Note: See TracChangeset for help on using the changeset viewer.