Changeset 1796


Ignore:
Timestamp:
Nov 14, 2007, 1:59:56 AM (12 years ago)
Author:
bruno
Message:

Finally do not use vdf for ESX. Only creates issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi/mindi

    r1794 r1796  
    20562056    if [ "$ARCH" = "ia64" ] ; then
    20572057        mountefi=0
    2058         $DF -T | grep /boot/efi | grep -q vfat
     2058        df -T | grep /boot/efi | grep -q vfat
    20592059        if [ $? -ne 0 ]; then
    20602060            mount /boot/efi
     
    20962096    [ "$mountpoint" != "" ] && rm -Rf $mountpoint/lost+found
    20972097    dd if=/dev/zero of=$mountpoint/zero bs=1k count=16 &> /dev/null
    2098     free_space=`$DF -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`
     2098    free_space=`df -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`
    20992099    cp -f $kernelpath $mountpoint/vmlinuz > /dev/null 2> /dev/null
    21002100    if [ "$?" -ne "0" ] || [ "$FORCE_DUAL_FLOPPIES" = "yes" ] ; then
     
    21212121        return $res
    21222122    fi
    2123     free_space=`$DF -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`
     2123    free_space=`df -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`
    21242124    max_kernel_size=$(($free_space+`du -sk $kernelpath | cut -f1`))
    21252125    echo "Free space left on floppy = $free_space KB" >> $LOGFILE
     
    22362236    [ "$mountpoint" != "" ] && rm -Rf $mountpoint/lost+found
    22372237    dd if=/dev/zero of=$mountpoint/zero bs=1k count=16 &> /dev/null
    2238     free_space=`$DF -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`
     2238    free_space=`df -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`
    22392239    cp -f $kernelpath $mountpoint/vmlinuz &> /dev/null
    22402240    if [ "$?" -ne "0" ] || [ "$FORCE_DUAL_FLOPPIES" = "yes" ] ; then
     
    22612261        return $res
    22622262    fi
    2263     free_space=`$DF -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`
     2263    free_space=`df -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`
    22642264    max_kernel_size=$(($free_space+`du -sk $kernelpath | cut -f1`))
    22652265    echo "Free space left on floppy = $free_space KB" >> $LOGFILE
     
    25242524    res=`$FDISK -s $device 2>> $LOGFILE`
    25252525    # end patch
    2526     [ "$res" = "" ] && res=`$DF -k -P -x supermount | tr -s '\t' ' ' | grep -F "$device " | cut -d' ' -f2`
     2526    [ "$res" = "" ] && res=`df -k -P -x supermount | tr -s '\t' ' ' | grep -F "$device " | cut -d' ' -f2`
    25272527    [ "$res" = "" ] && res="-1"
    25282528    echo $res
     
    31903190lsmod >> $LOGFILE
    31913191MODULES="`cat /proc/modules | awk '{print $1}'`"
    3192 DF="/bin/df"
    31933192if [ -x /usr/sbin/esxcfg-module ]; then
    31943193    echo "VMWare ESX server detected - Enabling dedicated support" >> $LOGFILE
     
    31983197    /usr/sbin/esxcfg-module -l >> $LOGFILE
    31993198    MODULES="$MODULES `/usr/sbin/esxcfg-module -l | awk '{print $1}'`"
    3200     #DF="/usr/sbin/vdf"
    32013199fi
    32023200echo "-------------" >> $LOGFILE
    3203 echo "`basename $DF` result:" >> $LOGFILE
     3201echo "df result:" >> $LOGFILE
    32043202echo "----------" >> $LOGFILE
    3205 $DF -T >> $LOGFILE
     3203df -T >> $LOGFILE
    32063204echo "-------------" >> $LOGFILE
    32073205echo "Liste of extra modules is:" >> $LOGFILE
Note: See TracChangeset for help on using the changeset viewer.