Changeset 3378 in MondoRescue for branches/3.2/mondo/src/restore-scripts


Ignore:
Timestamp:
May 6, 2015, 2:10:24 PM (9 years ago)
Author:
Bruno Cornec
Message:
  • Deal with grub used with UEFI
Location:
branches/3.2/mondo/src/restore-scripts/mondo
Files:
2 edited

Legend:

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

    r3377 r3378  
    206206elif [ -f "/mnt/RESTORING/boot/grub2/grub.cfg" ]; then
    207207    grep -vE '^#' /boot/grub2/grub.cfg > /mnt/RESTORING/tmp/grub.conf
     208elif [ -d "/mnt/RESTORING/boot/efi" ]; then
     209    grep -vE '^#' `find /boot/efi -name grub.conf` > /mnt/RESTORING/tmp/grub.conf
    208210else
    209211    echo "Unable to find Grub conf file" | tee -a $LOGFILE
  • branches/3.2/mondo/src/restore-scripts/mondo/stabgrub-me

    r3297 r3378  
    7979        return 0
    8080    fi
     81    if [ -d "/sys/firmware/efi" ]; then
     82        old_grubconf=`find /mnt/RESTORING/boot/efi -name grub.conf`
     83    fi
    8184    LogIt "GRUB not found." 2
    8285    return 1
Note: See TracChangeset for help on using the changeset viewer.