Skip to content

Commit cce2b81

Browse files
committed
iso: inhibit gpt-auto
Workaround to prevent ISOs from failing to boot when used as disk images in combination with UEFI [1] [1]: osbuild/images#1947 (comment) Signed-off-by: Simon de Vlieger <[email protected]>
1 parent 7326a3d commit cce2b81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bib/cmd/bootc-image-builder/legacy_iso.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ func manifestForISO(c *ManifestConfig, rng *rand.Rand) (*manifest.Manifest, erro
317317
img.InstallerCustomizations.OSVersion = c.SourceInfo.OSRelease.VersionID
318318
img.InstallerCustomizations.ISOLabel = labelForISO(&c.SourceInfo.OSRelease, &c.Architecture)
319319

320+
// XXX workaround for gpt-auto preventing ISO boot see [1]
321+
// [1]: https://github.com/osbuild/images/issues/1947#issuecomment-3395867961
322+
img.InstallerCustomizations.KernelOptionsAppend = append(img.InstallerCustomizations.KernelOptionsAppend, "systemd.gpt_auto=0")
323+
320324
img.ExtraBasePackages = rpmmd.PackageSet{
321325
Include: imageDef.Packages,
322326
}

0 commit comments

Comments
 (0)