Skip to content

Commit ca8cf25

Browse files
committed
bootc_imagetype: Use menu timeout from iso.yaml
Related: HMS-10627
1 parent efbaf62 commit ca8cf25

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pkg/distro/generic/bootc_imagetype.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,10 @@ func (t *bootcImageType) manifestForGenericISO(bp *blueprint.Blueprint, options
565565
// TODO This really belongs in ISOCustomization
566566
img.InstallerCustomizations.DefaultMenu = *isoi.Grub2.Default
567567
}
568-
// TODO -- add timeout to one of the customizations
569-
// img.Grub2MenuTimeout = isoi.Grub2.Timeout
568+
if isoi.Grub2.Timeout != nil {
569+
// TODO This really belongs in ISOCustomization
570+
img.InstallerCustomizations.MenuTimeout = *isoi.Grub2.Timeout
571+
}
570572

571573
if len(isoi.KernelArgs) > 0 {
572574
img.KernelOpts = isoi.KernelArgs

0 commit comments

Comments
 (0)