Changeset 3731 in MondoRescue


Ignore:
Timestamp:
Nov 18, 2019, 1:43:21 AM (4 years ago)
Author:
Bruno Cornec
Message:

Do not fix bootdrive in grub commands

File:
1 edited

Legend:

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

    r3542 r3731  
    188188    if [ "$grub_res" -ne "0" ] ; then
    189189        LogIt "mr-grub failed. Running grub-install..."
    190         chroot /mnt/RESTORING grub-install '(hd0)' >> $LOGFILE 2>> $LOGFILE
     190        chroot /mnt/RESTORING grub-install $bootdrive >> $LOGFILE 2>> $LOGFILE
    191191        grub_res=$?
    192192    else
     
    195195    if [ "$grub_res" -ne "0" ] ; then
    196196        LogIt "grub failed. Running grub2-install..." 3
    197         chroot /mnt/RESTORING grub2-install /dev/sda >> $LOGFILE 2>> $LOGFILE
     197        chroot /mnt/RESTORING grub2-install $bootdrive >> $LOGFILE 2>> $LOGFILE
    198198        grub_res=$?
    199199    else
Note: See TracChangeset for help on using the changeset viewer.