Skip to content

Commit eba3e06

Browse files
author
test-cli-e2e-aws
committed
add support for PI 4 and 5
1 parent 414098e commit eba3e06

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

cmd/command/edge/edge.go

+5
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ func Commands(clients client.Plural, helmConfiguration *action.Configuration) []
9292
Name: "wifi-password",
9393
Usage: "password for the wifi network, needs to be used with wifi-ssid, used during cloud config templating",
9494
},
95+
cli.StringFlag{
96+
Name: "model",
97+
Usage: "the board model",
98+
Value: "rpi5",
99+
},
95100
},
96101
},
97102
{

cmd/command/edge/image.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ func (p *Plural) handleEdgeImage(c *cli.Context) error {
5656
password := c.String("password")
5757
wifiSsid := c.String("wifi-ssid")
5858
wifiPassword := c.String("wifi-password")
59+
model := c.String("model")
5960

6061
if err := p.InitConsoleClient(consoleToken, consoleURL); err != nil {
6162
return err
@@ -133,7 +134,7 @@ func (p *Plural) handleEdgeImage(c *cli.Context) error {
133134
"--mount", volumeMount,
134135
"--privileged", "-i", "--rm",
135136
"--entrypoint=/build-arm-image.sh", config.AurorabootImage,
136-
"--model", "rpi4",
137+
"--model", model,
137138
"--directory", volumeMountPath,
138139
"--config", "/cloud-config.yaml", "/tmp/build/kairos.img"); err != nil {
139140
return err

0 commit comments

Comments
 (0)