Changeset 1141 in MondoRescue


Ignore:
Timestamp:
Feb 12, 2007, 2:16:00 AM (17 years ago)
Author:
Bruno Cornec
Message:

Fix a bug in mindi in standalone mode (MONDORESTORECFG doesn't exist in that case)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r1124 r1141  
    22432243
    22442244    # master boot record, too
    2245     i=`grep bootloader.device $MONDORESTORECFG | cut -d' ' -f2 2> /dev/null`
    2246     if [ "$i" ] ; then
    2247         LogIt "Backing up $i's MBR"
    2248         dd if=$i of=$bigdir/BOOTLOADER.MBR bs=446 count=1 >> $LOGFILE 2>> $LOGFILE
    2249         sleep 1
    2250         sync
    2251         j=$i
    2252         [ -h "$j" ] && j=`readlink -f $j`
    2253         LogIt "Creating /dev/boot_device ($j)"
    2254         mkdir -p $bigdir/dev
    2255         cp -pRdf $j $bigdir/dev/boot_device 2> /dev/null || Die "Unable to create /dev/boot_device on ramdisk"
     2245    if [ _"$MONDORESTORECFG" != _"" ]; then
     2246        i=`grep bootloader.device $MONDORESTORECFG | cut -d' ' -f2 2> /dev/null`
     2247        if [ "$i" ] ; then
     2248            LogIt "Backing up $i's MBR"
     2249            dd if=$i of=$bigdir/BOOTLOADER.MBR bs=446 count=1 >> $LOGFILE 2>> $LOGFILE
     2250            sleep 1
     2251            sync
     2252            j=$i
     2253            [ -h "$j" ] && j=`readlink -f $j`
     2254            LogIt "Creating /dev/boot_device ($j)"
     2255            mkdir -p $bigdir/dev
     2256            cp -pRdf $j $bigdir/dev/boot_device 2> /dev/null || Die "Unable to create /dev/boot_device on ramdisk"
     2257        fi
    22562258    fi
    22572259
Note: See TracChangeset for help on using the changeset viewer.