Simplify logic to locate efi/shim file
... using the operating system name. This may allow the module to work with untested distributions such as Rocky. Change-Id: Idd73ccd4d5366ccbb9373d7e3bfcba120fc238bb
This commit is contained in:
parent
4ea8a53abf
commit
0e78daf80d
@ -73,17 +73,9 @@ class ironic::params {
|
||||
$syslinux_path = '/tftpboot'
|
||||
$syslinux_files = ['pxelinux.0', 'chain.c32', 'ldlinux.c32']
|
||||
$grub_efi_package = 'grub2-efi-x64'
|
||||
$grub_efi_file = "/boot/efi/EFI/${downcase($facts['os']['name'])}/grubx64.efi"
|
||||
$shim_package = 'shim'
|
||||
case $facts['os']['name'] {
|
||||
'RedHat': {
|
||||
$grub_efi_file = '/boot/efi/EFI/redhat/grubx64.efi'
|
||||
$shim_file = '/boot/efi/EFI/redhat/shimx64.efi'
|
||||
}
|
||||
default: {
|
||||
$grub_efi_file = '/boot/efi/EFI/centos/grubx64.efi'
|
||||
$shim_file = '/boot/efi/EFI/centos/shimx64.efi'
|
||||
}
|
||||
}
|
||||
$shim_file = "/boot/efi/EFI/${downcase($facts['os']['name'])}/shimx64.efi"
|
||||
}
|
||||
'Debian': {
|
||||
$common_package_name = 'ironic-common'
|
||||
|
Loading…
x
Reference in New Issue
Block a user