Skip to content

Commit

Permalink
Merge pull request #218 from kinvolk/kai/arm64-kernel-offset
Browse files Browse the repository at this point in the history
kola/tests/misc/verity: check arm64 board on all platforms
  • Loading branch information
pothos authored Aug 26, 2021
2 parents 12b5a96 + e3f9a32 commit 7fdc55e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kola/tests/misc/verity.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"github.com/coreos/mantle/kola/register"
"github.com/coreos/mantle/kola/tests/util"
"github.com/coreos/mantle/platform"
"github.com/coreos/mantle/platform/machine/qemu"
)

func init() {
Expand Down Expand Up @@ -111,8 +110,8 @@ func VerityCorruption(c cluster.TestCluster) {

// get offset of verity hash within kernel
func getKernelVerityHashOffset(c cluster.TestCluster) int {
// assume ARM64 is only on QEMU for now
if _, ok := c.Cluster.(*qemu.Cluster); ok && kola.QEMUOptions.Board == "arm64-usr" {
// the QEMUOptions.Board is also used by other platforms
if kola.QEMUOptions.Board == "arm64-usr" {
return 512
}
return 64
Expand Down

0 comments on commit 7fdc55e

Please sign in to comment.