mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-12-03 15:47:08 +00:00
fix(anaconda): publish the riscv64 boot loader of openEuler media
copycds looks for EFI/BOOT/grubriscv64.efi on riscv64 media. openEuler media carry the same image as EFI/BOOT/grubriscv64.EFI, so copycds publishes no grub2.riscv64. A management node with only openEuler media then has no riscv64 network boot loader. Match the image name case-insensitively, as UEFI does.
This commit is contained in:
@@ -2203,7 +2203,13 @@ sub _install_media_grub2_loader {
|
||||
|
||||
my $image = $MEDIA_GRUB2_LOADERS{$arch};
|
||||
return unless $image;
|
||||
my $source = "$path/EFI/BOOT/$image";
|
||||
|
||||
# UEFI file names are case-insensitive: openEuler ships grubriscv64.EFI.
|
||||
opendir(my $dh, "$path/EFI/BOOT") or return;
|
||||
my ($name) = sort grep { lc($_) eq $image } readdir($dh);
|
||||
closedir($dh);
|
||||
return unless defined($name);
|
||||
my $source = "$path/EFI/BOOT/$name";
|
||||
return unless -r $source;
|
||||
|
||||
my $tftpdir = xCAT::TableUtils->getTftpDir();
|
||||
|
||||
Reference in New Issue
Block a user