Changeset 2924 in MondoRescue


Ignore:
Timestamp:
Dec 22, 2011, 11:58:33 PM (12 years ago)
Author:
Bruno Cornec
Message:
  • Force activation of first partition which should not be optional as everything is destroyed before
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/mindi

    r2923 r2924  
    15391539    echo "Transforming $USBDEVICE in a Bootable device"  >> $LOGFILE
    15401540    echo "Checking $USBDEVICE" >> $LOGFILE
    1541     $FDISK -l $USBDEVICE 2>> $LOGFILE 1> $MINDI_TMP/fdisk.log
    1542     cat $MINDI_TMP/fdisk.log >> $LOGFILE
     1541    $FDISK -l $USBDEVICE 2>&1 >> $LOGFILE
    15431542    if [ $? -ne 0 ]; then
    15441543        echo "Unable to access $USBDEVICE" | tee -a $LOGFILE
     
    15711570t
    15721571b
    1573 w
    1574 EOF
    1575     # Search for bootable flag
    1576     grep '* ' $MINDI_TMP/fdisk.log | grep $USBDEVICE
    1577     if [ $? -ne 0 ]; then
    1578         cat >> $MINDI_TMP/fdisk.txt << EOF
    15791572a
    158015731
    15811574w
    15821575EOF
    1583     fi
    15841576    $FDISK $USBDEVICE 2>> $LOGFILE 1>> $LOGFILE < $MINDI_TMP/fdisk.txt
    15851577    if [ $? -ne 0 ]; then
     
    15931585    cat $MINDI_TMP/fdisk.txt >> $LOGFILE
    15941586    echo "----------------" >> $LOGFILE
    1595     rm -f $MINDI_TMP/fdisk.log $MINDI_TMP/fdisk.txt
     1587    rm -f $MINDI_TMP/fdisk.txt
    15961588    echo "The USB device $USBDEVICE now looks like this:" >> $LOGFILE
    15971589    $FDISK -l $USBDEVICE 2>&1 | tee -a $LOGFILE
Note: See TracChangeset for help on using the changeset viewer.