Changeset 2657


Ignore:
Timestamp:
Jun 17, 2010, 9:30:24 AM (9 years ago)
Author:
bruno
Message:
  • mindi is now able to handle compressed kernel with .gz or .bz2 suffix (case of OpenSuSE 11.2)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/mindi

    r2654 r2657  
    28552855                LogIt "It's a Xen kernel..."
    28562856                # WARNING: This will only work for RHEL 5
    2857                 # TODO: SLES and others
    28582857                # Use TryToFindKernelPath ?
    28592858                xenkernelpath="/boot/`uname -r | awk '{sub("[Xx][Ee][Nn]",""); printf("xen.gz-%s",$0)}'`"
     
    28752874            LogIt "xenkernelname = $xenkernelname"
    28762875        fi
    2877         kernelname=`echo $kernelpath | cut -d'-' -f2-`
    2878         LogIt "kernelname = $kernelname"
    2879         LogIt "kernelpath = $kernelpath"
     2876        kernelname=`echo $kernelpath | cut -d'-' -f2- | sed 's/.[bg]z[2]*$//'`
    28802877        if [ ! -d "/lib/modules/$kernelname" ] && [ "$kernelpath" != "FAILSAFE" ]
    28812878        then
     
    28832880           LogIt "using running kernel\'s modules."
    28842881           kernelname=$KERVERRUN
    2885         else
    2886            LogIt "Using modules for kernel: ${kernelname}"
    2887         fi
     2882        fi
     2883        LogIt "kernelname = $kernelname"
     2884        LogIt "kernelpath = $kernelpath"
    28882885###
    28892886### end of Sq-Modification
     
    29182915        [ "$TAPEDEV" ] && LogIt "This is a tape-based backup. Fine."
    29192916        [ "$kernelpath" = "" ] && kernelpath=`TryToFindKernelPath`
    2920         kernelname=`echo $kernelpath | cut -d'-' -f2-`
    2921         if [ ! -d "/lib/modules/$kernelname" ] && [ "$kernelpath" != "FAILSAFE" ]
    2922         then
    2923            LogIt "Module path for ${kernelpath} not found..."
    2924            LogIt "using running kernel\'s modules."
    2925            kernelname=$KERVERRUN
    2926         else
    2927            LogIt "Using modules for kernel: ${kernelname}"
    2928         fi
    29292917        # MONDO_ROOT is the real scratchdir
    29302918        MONDO_ROOT=`echo $MINDI_CACHE | sed 's/\(.*\)\/.*/\1/'`
Note: See TracChangeset for help on using the changeset viewer.