2
0
mirror of https://github.com/linka-cloud/d2vm.git synced 2025-12-14 15:03:12 +00:00

grub and grub-efi not supported for CentOS

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
2023-09-13 13:42:00 +02:00
parent a41bbdb745
commit f8fc729486
3 changed files with 9 additions and 0 deletions

View File

@@ -55,6 +55,9 @@ type grubEFIProvider struct {
}
func (g grubEFIProvider) New(c Config, r OSRelease) (Bootloader, error) {
if r.ID == ReleaseCentOS {
return nil, fmt.Errorf("grub-efi is not supported for CentOS, use grub-bios instead")
}
return grubEFI{grubCommon: newGrubCommon(c, r)}, nil
}