Skip to content

Commit 71e2e30

Browse files
eb4xekohl
authored andcommitted
Simplify grub_efi_path on redhat family
Remains backwards-compatible with supported distros, and we don't have to look for openeuler or oraclelinux or any other EL variant.
1 parent 1a42903 commit 71e2e30

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

manifests/tftp/netboot.pp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@
2828

2929
case $grub_installation_type {
3030
'redhat': {
31-
$grub_efi_path = $facts['os']['name'] ? {
32-
/Fedora|CentOS|AlmaLinux|Rocky/ => downcase($facts['os']['name']),
33-
default => 'redhat',
34-
}
31+
$grub_efi_path = downcase($facts['os']['name'])
3532

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

0 commit comments

Comments
 (0)