Skip to content
Snippets Groups Projects
Commit 256b7cad authored by Thomas Bellman's avatar Thomas Bellman
Browse files

Handle UEFI systems when rebuilding Grub 2 config file.

On UEFI systems, grub.cfg is in /boot/efi/EFI/<os>/grub.cfg instead
of in /boot/grub2/grub.cfg.  Luckily, instead of having to know what
"<os>" needs to be instantiated with (e.g. "centos"), it seems that
we can just point grub2-mkconfig to the symlink /etc/grub2-efi.cfg.
(This at least works on RedHat:ish systems.)
parent c25ee385
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment