Skip to content

Commit

Permalink
testiso: use ostree version for offline version check
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jlebon authored and dustymabe committed Nov 27, 2024
1 parent 31356c4 commit fad6461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mantle/cmd/kola/testiso.go
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ func testPXE(ctx context.Context, inst platform.Install, outdir string) (time.Du
liveConfig.AddSystemdUnit("coreos-test-entered-emergency-target.service", signalFailureUnit, conf.Enable)

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

Expand Down

0 comments on commit fad6461

Please sign in to comment.