m/node: replace image genrule with proper rule
The genrule has issues with transitions so replace it with a proper
rule.
Change-Id: Ie5c38ae17da07a3694a6d0ea7a6580c588916175
Reviewed-on: https://review.monogon.dev/c/monogon/+/2205
Reviewed-by: Serge Bazanski <serge@monogon.tech>
Tested-by: Jenkins CI
diff --git a/metropolis/test/launch/cluster/cluster.go b/metropolis/test/launch/cluster/cluster.go
index cc5d72f..a312e86 100644
--- a/metropolis/test/launch/cluster/cluster.go
+++ b/metropolis/test/launch/cluster/cluster.go
@@ -130,7 +130,7 @@
}
// Initialize the node's storage with a prebuilt image.
- si, err := datafile.ResolveRunfile("metropolis/node/node.img")
+ si, err := datafile.ResolveRunfile("metropolis/node/image.img")
if err != nil {
return nil, fmt.Errorf("while resolving a path: %w", err)
}
@@ -278,7 +278,7 @@
tpmSocketPath := filepath.Join(r.sd, "tpm-socket")
fwVarPath := filepath.Join(r.ld, "OVMF_VARS.fd")
- storagePath := filepath.Join(r.ld, "node.img")
+ storagePath := filepath.Join(r.ld, "image.img")
qemuArgs := []string{
"-machine", "q35", "-accel", "kvm", "-nographic", "-nodefaults", "-m", "4096",
"-cpu", "host", "-smp", "sockets=1,cpus=1,cores=2,threads=2,maxcpus=4",