Fix efi file paths in RHEL
The file paths are slightly different (redhat instead of centos) in RHEL. Backport note: This change uses legacy facts instead of structured facts to make the implementation consistent with the old codes. Change-Id: Ib9c386d713a4845ebafdfe5377a016e5effa0de0 (cherry picked from commitfe1774fbb6
) (cherry picked from commitb6a3f2872c
) (cherry picked from commit14787fb98c
) (cherry picked from commitf169e76453
) (cherry picked from commit61f8ec1943
)
This commit is contained in:
parent
39ba8bc1ca
commit
edf93f985a
@ -69,9 +69,17 @@ 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/centos/grubx64.efi'
|
||||
$shim_package = 'shim'
|
||||
$shim_file = '/boot/efi/EFI/centos/shimx64.efi'
|
||||
case $::operatingsystem {
|
||||
'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'
|
||||
}
|
||||
}
|
||||
}
|
||||
'Debian': {
|
||||
$common_package_name = 'ironic-common'
|
||||
|
Loading…
Reference in New Issue
Block a user