Ignore:
Timestamp:
Feb 3, 2012, 2:12:47 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • Adds grub2 support (Michael Caerwyn mcaerwyn_at_gmail.com)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mondo/src/restore-scripts/mondo/grub-MR

    r2920 r2944  
    133133[ "$res" -eq "0" ] && exit 0
    134134
     135
     136echo "Now I'll use grub2-install" >> $LOGFILE
     137if [ "$MNT_RESTORING" ] ; then
     138    chroot $MNT_RESTORING grub2-install $1 >> $LOGFILE 2>> $LOGFILE
     139    res=$?
     140else
     141    grub2-install $1 >> $LOGFILE 2>> $LOGFILE
     142    res=$?
     143fi
     144echo "grub2-install returned $res" >> $LOGFILE
     145[ "$res" -eq "0" ] && exit 0
     146
    135147echo "Trying a hack" >> $LOGFILE
    136148FindBootPart $1 $2 2>&1 | tee -a $LOGFILE
Note: See TracChangeset for help on using the changeset viewer.