Skip to content

Commit

Permalink
Simplify grub_efi_path on redhat family
Browse files Browse the repository at this point in the history
Remains backwards-compatible with supported distros, and we don't
have to look for openeuler or oraclelinux or any other EL variant.
  • Loading branch information
eb4x authored and ekohl committed May 2, 2023
1 parent 1a42903 commit 71e2e30
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions manifests/tftp/netboot.pp
Expand Up @@ -28,10 +28,7 @@

case $grub_installation_type {
'redhat': {
$grub_efi_path = $facts['os']['name'] ? {
/Fedora|CentOS|AlmaLinux|Rocky/ => downcase($facts['os']['name']),
default => 'redhat',
}
$grub_efi_path = downcase($facts['os']['name'])

file { "${root}/grub2/grubx64.efi":
ensure => file,
Expand Down

0 comments on commit 71e2e30

Please sign in to comment.