Skip to content

Commit 0af682f

Browse files
committed
bootc_imagetype: Use menu timeout from iso.yaml
Related: HMS-10627
1 parent ec0d70d commit 0af682f

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
@@ -564,8 +564,10 @@ func (t *bootcImageType) manifestForGenericISO(bp *blueprint.Blueprint, options
564564
// TODO This really belongs in ISOCustomization
565565
img.InstallerCustomizations.DefaultMenu = *isoi.Grub2.Default
566566
}
567-
// TODO -- add timeout to one of the customizations
568-
// img.Grub2MenuTimeout = isoi.Grub2.Timeout
567+
if isoi.Grub2.Timeout != nil {
568+
// TODO This really belongs in ISOCustomization
569+
img.InstallerCustomizations.MenuTimeout = *isoi.Grub2.Timeout
570+
}
569571

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

0 commit comments

Comments
 (0)