Skip to content

Commit fad6461

Browse files
jlebondustymabe
authored andcommitted
testiso: use ostree version for offline version check
There is a difference between the build ID and the OSTree version. They're almost always the same, except if you're rebuilding disk images/ISOs on top of the same OSTree commit. Here, we want the OSTree version, not the build ID.
1 parent 31356c4 commit fad6461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mantle/cmd/kola/testiso.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ func testPXE(ctx context.Context, inst platform.Install, outdir string) (time.Du
819819
liveConfig.AddSystemdUnit("coreos-test-entered-emergency-target.service", signalFailureUnit, conf.Enable)
820820

821821
if isOffline {
822-
contents := fmt.Sprintf(downloadCheck, kola.CosaBuild.Meta.BuildID, kola.CosaBuild.Meta.OstreeCommit)
822+
contents := fmt.Sprintf(downloadCheck, kola.CosaBuild.Meta.OstreeVersion, kola.CosaBuild.Meta.OstreeCommit)
823823
liveConfig.AddSystemdUnit("coreos-installer-offline-check.service", contents, conf.Enable)
824824
}
825825

0 commit comments

Comments
 (0)