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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user