Changeset 1530 in MondoRescue for branches


Ignore:
Timestamp:
Jul 6, 2007, 4:36:26 PM (17 years ago)
Author:
Bruno Cornec
Message:

Support for swap with UUID on VMWare ESX 3 at least with dumpuuid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r1529 r1530  
    12891289            fi
    12901290   
    1291             # 2nd try : blkid, the good way for all LABEL except swap
     1291            # 2nd try : blkid, the good way for all UUID except swap
    12921292            if [ "x$actual_dev" = "x" -a -x "/sbin/blkid" ]; then
    12931293                actual_dev=`/sbin/blkid | /bin/grep "$uuid" | grep UUID= | cut -d':' -f1`
     
    13121312                for dev in $list_dev ; do
    13131313                    dev_exists=`/sbin/vol_id $dev | /bin/grep "$uuid"`
     1314                    if [ "x$dev_exists" != "x" ]; then
     1315                        actual_dev=$dev
     1316                        break;
     1317                    fi
     1318                done
     1319            fi
     1320
     1321            # 4th try, with dumpuuid (VMWare only ?) for swap
     1322            if [ "x$actual_dev" = "x" -a -x "/sbin/dumpuuid" ]; then
     1323                list_dev=`cat /proc/swaps | /bin/grep -E '^/' | $AWK '{ print $1 }' `
     1324                for dev in $list_dev ; do
     1325                    dev_exists=`/sbin/dumpuuid $dev | /bin/grep "$uuid"`
    13141326                    if [ "x$dev_exists" != "x" ]; then
    13151327                        actual_dev=$dev
     
    30613073lsmod >> $LOGFILE
    30623074MODULES="`cat /proc/modules | awk '{print $1}'`"
    3063 if [ -e /usr/sbin/esxcfg-module ]; then
     3075if [ -x /usr/sbin/esxcfg-module ]; then
    30643076    echo "VMWare ESX server detected - Enabling dedicated support" >> $LOGFILE
    30653077    echo "-------------" >> $LOGFILE
    30663078    echo "VMWare modules" >> $LOGFILE
    30673079    echo "-------------" >> $LOGFILE
    3068     esxcfg-module -l >> $LOGFILE
     3080    /usr/sbin/esxcfg-module -l >> $LOGFILE
    30693081    MODULES="$MODULES `esxcfg-module -l | awk '{print $1}'`"
    30703082fi
Note: See TracChangeset for help on using the changeset viewer.