Changeset 1531 in MondoRescue
- Timestamp:
- Jul 6, 2007, 4:37:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.4/mindi/mindi
r1526 r1531 1333 1333 fi 1334 1334 1335 # 2nd try : blkid, the good way for all LABELexcept swap1335 # 2nd try : blkid, the good way for all UUID except swap 1336 1336 if [ "x$actual_dev" = "x" -a -x "/sbin/blkid" ]; then 1337 1337 actual_dev=`/sbin/blkid | /bin/grep "$uuid" | grep UUID= | cut -d':' -f1` … … 1356 1356 for dev in $list_dev ; do 1357 1357 dev_exists=`/sbin/vol_id $dev | /bin/grep "$uuid"` 1358 if [ "x$dev_exists" != "x" ]; then 1359 actual_dev=$dev 1360 break; 1361 fi 1362 done 1363 fi 1364 1365 # 4th try, with dumpuuid (VMWare only ?) for swap 1366 if [ "x$actual_dev" = "x" -a -x "/sbin/dumpuuid" ]; then 1367 list_dev=`cat /proc/swaps | /bin/grep -E '^/' | $AWK '{ print $1 }' ` 1368 for dev in $list_dev ; do 1369 dev_exists=`/sbin/dumpuuid $dev | /bin/grep "$uuid"` 1358 1370 if [ "x$dev_exists" != "x" ]; then 1359 1371 actual_dev=$dev … … 2915 2927 lsmod >> $LOGFILE 2916 2928 MODULES="`cat /proc/modules | awk '{print $1}'`" 2917 if [ - e/usr/sbin/esxcfg-module ]; then2929 if [ -x /usr/sbin/esxcfg-module ]; then 2918 2930 echo "VMWare ESX server detected - Enabling dedicated support" >> $LOGFILE 2919 2931 echo "-------------" >> $LOGFILE 2920 2932 echo "VMWare modules" >> $LOGFILE 2921 2933 echo "-------------" >> $LOGFILE 2922 esxcfg-module -l >> $LOGFILE2934 /usr/sbin/esxcfg-module -l >> $LOGFILE 2923 2935 MODULES="$MODULES `esxcfg-module -l | awk '{print $1}'`" 2924 2936 fi
Note:
See TracChangeset
for help on using the changeset viewer.