Changeset 2858 in MondoRescue


Ignore:
Timestamp:
Jul 26, 2011, 1:14:25 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • Fix an issue in test of FindKernel for Xen and non Xen cases
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/mindi

    r2857 r2858  
    23422342            if echo $i | grep "$KERVERRUN" ; then
    23432343                LogIt "OK, I used my initiative and found that "
    2344                     LogIt "$i is probably your kernel. "
     2344                LogIt "$i is probably your kernel. "
    23452345                output="$i"
     2346                break
    23462347            fi
    23472348        done
    2348         if [ -n "$output" ]; then
     2349        if [ ! -n "$output" ]; then
    23492350            if echo " $possible_kernels " | grep -F "/boot/vmlinuz " &> /dev/null ; then
    23502351                output=/boot/vmlinuz
     
    23662367        else
    23672368            for i in $possible_xenkernels ; do
    2368                     if echo $i | grep "$KERVERRUN" ; then
     2369                if echo $i | grep "$KERVERRUN" ; then
    23692370                    LogIt "OK, I used my initiative and found that "
    2370                         LogIt "$i is probably your Xen kernel. "
     2371                    LogIt "$i is probably your Xen kernel. "
    23712372                    xenkernelpath="$i"
     2373                    break
    23722374                fi
    23732375            done
    2374             if [ -n "$xenkernelpath" ]; then
     2376            if [ ! -n "$xenkernelpath" ]; then
    23752377                new_possible_xenkernels=`echo "$possible_xenkernels" | tr -s ' ' '\n' | grep -E "^/boot" | sort -u | tr '\n' ' '`
    23762378                if [ ! -n "$new_possible_xenkernels" ]; then
     
    23782380                    LogIt "Using $xenkernelpath"
    23792381                else
    2380                         LogIt "Two or more possible Xen kernels found. You may specify any one of them and the "
     2382                    LogIt "Two or more possible Xen kernels found. You may specify any one of them and the "
    23812383                    LogIt "boot disks will still work, probably. If one does not work, try another."
    2382                         LogIt "$possible_xenkernels"
     2384                    LogIt "$possible_xenkernels"
    23832385                    echo ""
    23842386                    xenkernelpath=`echo $possible_xenkernels | tr -s ' ' '\n' | head -1`
     
    28962898            if [ $KERNEL_IS_XEN = "yes" ]; then
    28972899                echo "$xenkernelpath"
     2900                LogIt "xenkernelpath = $xenkernelpath"
     2901        fi
    28982902                MindiExit 0
    28992903            else
Note: See TracChangeset for help on using the changeset viewer.