Changeset 2451 in MondoRescue for branches/2.2.10/mindi


Ignore:
Timestamp:
Oct 6, 2009, 1:34:09 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • Fix a mr_asprintf usage without & causing a seg fault.
  • Adds support for grub2 conf file grub.cfg in addition to menu.lst
  • Fix for #288: only take the first result in SizeOfPartition in case of multiple mounts
  • Improve USB log in case of error by adding the conf file

(Backport from 2.2.9)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mindi/mindi

    r2446 r2451  
    14881488            LogAll "----------- syslinux's errors --------------" |tee -a $LOGFILE
    14891489            cat $MINDI_TMP/syslinux.log |tee -a $LOGFILE
     1490            echo "----------- syslinux's conf --------------" |tee -a $LOGFILE
     1491            cat $MINDI_TMP/usb/syslinux.cfg |tee -a $LOGFILE
    14901492            LogAll "Failed to create USB image."
    14911493        else
     
    16951697        return 0
    16961698    fi
    1697     free_space=`df -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`
    16981699    max_kernel_size=$(($free_space+`du -sk $kernelpath | cut -f1`))
    16991700    LogFile "Free space left on image = $free_space KB"
     
    17901791        return 0
    17911792    fi
    1792     free_space=`df -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`
    17931793    max_kernel_size=$(($free_space+`du -sk $kernelpath | cut -f1`))
    17941794    LogFile "Free space left on image = $free_space KB"
     
    20352035    res=`$FDISK -s $device 2>> $LOGFILE`
    20362036    # end patch
    2037     [ "$res" = "" ] && res=`df -k -P -x supermount | tr -s '\t' ' ' | grep -F "$device " | cut -d' ' -f2`
     2037    # take only the first in case of multiple mount (cifs, nfs, ...)
     2038    [ "$res" = "" ] && res=`df -k -P -x supermount | tr -s '\t' ' ' | grep -F "$device " | cut -d' ' -f2 | head -1`
    20382039    [ "$res" = "" ] && res="-1"
    20392040    echo $res
Note: See TracChangeset for help on using the changeset viewer.