mirror of
https://github.com/linka-cloud/d2vm.git
synced 2026-06-09 21:45:46 +00:00
fix: fix centos / rhel family 8+ grub-bios boot
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
+3
-1
@@ -32,6 +32,8 @@ GRUB_TIMEOUT=0
|
||||
GRUB_CMDLINE_LINUX_DEFAULT="%s"
|
||||
GRUB_CMDLINE_LINUX=""
|
||||
GRUB_TERMINAL=console
|
||||
GRUB_DISABLE_OS_PROBER=true
|
||||
GRUB_ENABLE_BLSCFG=false
|
||||
`
|
||||
|
||||
type grubCommon struct {
|
||||
@@ -44,7 +46,7 @@ type grubCommon struct {
|
||||
|
||||
func newGrubCommon(c Config, r OSRelease) *grubCommon {
|
||||
name := "grub"
|
||||
if r.ID == "centos" {
|
||||
if r.ID == ReleaseCentOS || r.ID == ReleaseAlmaLinux || r.ID == ReleaseRocky {
|
||||
name = "grub2"
|
||||
}
|
||||
return &grubCommon{
|
||||
|
||||
Reference in New Issue
Block a user