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:
3
grub.go
3
grub.go
@@ -58,6 +58,9 @@ type grubProvider struct {
|
||||
}
|
||||
|
||||
func (g grubProvider) 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 grub{grubCommon: newGrubCommon(c, r)}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user