Skip to content

Commit c02fa47

Browse files
committed
fix: set grub timeout to 5s and remove load_video for RHEL-family
- Set timeout=5 so users can interrupt boot to edit grub entries - Remove load_video which fails with 'can't find command' error in minimal grub environment and is unnecessary for serial console VMs
1 parent 85e996e commit c02fa47

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

grub_common.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,13 @@ func (g *grubCommon) mkconfigRhel(ctx context.Context) error {
141141

142142
cfg := fmt.Sprintf(`# Generated by d2vm
143143
set default="0"
144-
set timeout=0
144+
set timeout=5
145145
146146
insmod part_msdos
147147
insmod fat
148148
search --no-floppy --label --set=root boot
149149
150150
menuentry 'Rocky Linux %s' --class gnu-linux --class gnu --class os {
151-
load_video
152151
insmod gzio
153152
linux /%s root=LABEL=rootfs ro net.ifnames=0 rootfstype=ext4 console=tty0 console=ttyS0,115200n8
154153
initrd /%s

0 commit comments

Comments
 (0)