Skip to content

Instantly share code, notes, and snippets.

@alexandre-mbm
Created September 23, 2015 06:50
Show Gist options
  • Select an option

  • Save alexandre-mbm/ed47e2aa4d0ac1bbeed4 to your computer and use it in GitHub Desktop.

Select an option

Save alexandre-mbm/ed47e2aa4d0ac1bbeed4 to your computer and use it in GitHub Desktop.
set old_root=$root
search.fs_uuid 3020b2c2-bdd1-4d60-a8b7-b29b1e4897e6 root hd1,gpt2
if [ $root != $old_root ]; then
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
else
search --fs-uuid --no-floppy --set=root 746E-44FF
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw_BACKUP.efi
boot
fi
@alexandre-mbm

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment