Changeset 2855


Ignore:
Timestamp:
Jul 25, 2011, 2:46:00 PM (8 years ago)
Author:
bruno
Message:
  • Install an MBR on USB devices when possible
Location:
branches/2.2.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/mindi

    r2854 r2855  
    7171# Force some modules to be included
    7272FORCE_MODS=""
     73
     74MBRFILE=/usr/lib/syslinux/mbr.bin
     75if [ ! -r $MBRFILE ]; then
     76    MBRFILE=/usr/share/syslinux/mbr.bin
     77fi
    7378
    7479LOGFILE=/var/log/mindi.log
     
    15111516    # If your key has no MBR it may cause an issue
    15121517    # Use dd if=mbr.bin of=$USBDEVICE or ms-sys -s $USBDEVICE
     1518    if [ -r $MBRFILE ]; then
     1519        echo "Installing an MBR ($MBRFILE) on $USBDEVICE" | tee -a $LOGFILE
     1520        dd if=$MBRFILE of=$USBDEVICE
     1521    else
     1522        echo "You may need to install an MBR (usually in $MBRFILE, but not found on your system) " | tee -a $LOGFILE
     1523        echo "on $USBDEVICE with dd if=$MBRFILE of=$USBDEVICE" | tee -a $LOGFILE
     1524    fi
    15131525    echo "Preparing $USBDEVICE" >> $LOGFILE
    15141526    cat > $MINDI_TMP/fdisk.txt << EOF
  • branches/2.2.9/mondo/src/common/libmondo-archive.c

    r2848 r2855  
    489489 * - @c compression_level
    490490 * - @c differential
    491  * - @c exclude_paths
    492491 * - @c image_devs
    493492 * - @c kernel_path
Note: See TracChangeset for help on using the changeset viewer.