Changeset 2655


Ignore:
Timestamp:
Jun 15, 2010, 1:04:51 AM (9 years ago)
Author:
bruno
Message:
  • Backport 2.2.9 devel mindi modifs to mindi 2.0.7.5 in 2.2.9.4 branch

(Fixes Xen detection and libata warning)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/2.2.9.4/mindi/mindi

    r2640 r2655  
    27552755
    27562756# Compute libata version
    2757 laver=`modinfo libata | grep -Ei '^Version:' | cut -d: -f2 | cut -d. -f1 | sed 's/  *//g' 2> /dev/null`
     2757laver=`modinfo libata 2> /dev/null | grep -Ei '^Version:' | cut -d: -f2 | cut -d. -f1 | sed 's/  *//g' 2> /dev/null`
    27582758# If libata v2 is used then remove ide-generic as it will perturbate boot
    27592759if [ "`echo $MODULES | grep libata`" ]; then
     
    28492849        # See if it's a Xen kernel
    28502850        if [ -n "$kernelpath" ]; then
    2851             strings $kernelpath | grep -iq xen 2>/dev/null
    2852             if [ $? -eq 0 ]; then
     2851            # See if we're booted from a Xen kernel
     2852            if [ -d /proc/sys/xen ]; then
    28532853                # It's a Xen kernel
    28542854                KERNEL_IS_XEN=yes
Note: See TracChangeset for help on using the changeset viewer.