Changeset 3699


Ignore:
Timestamp:
Mar 31, 2018, 11:30:18 AM (3 months ago)
Author:
bruno
Message:

Improve logging again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/restore-scripts/mondo/mr-grub

    r3698 r3699  
    141141    devfile="/boot/grub2/device.map"
    142142fi
    143 echo "Content of $devfile"
    144 echo "-------------------"
     143echo "Content of $devfile" >> $LOGFILE
     144echo "-------------------" >> $LOGFILE
    145145if [ -f "$devfile" ]; then
    146         cat $devfile
    147 else
    148         echo "No file $devfile"
     146        cat $devfile >> $LOGFILE
     147else
     148        echo "No file $devfile" >> $LOGFILE
    149149fi
    150150
    151151echo "Now I'll use grub2-install" >> $LOGFILE
    152152if [ "$MNT_RESTORING" ] ; then
     153    echo "Launching: chroot $MNT_RESTORING grub2-install --force $1" >> $LOGFILE
    153154    chroot $MNT_RESTORING grub2-install --force $1 >> $LOGFILE 2>> $LOGFILE
    154155    res=$?
    155156else
     157    echo "Launching: grub2-install --force $1" >> $LOGFILE
    156158    grub2-install --force $1 >> $LOGFILE 2>> $LOGFILE
    157159    res=$?
Note: See TracChangeset for help on using the changeset viewer.