diff --git a/cmd/control/install.go b/cmd/control/install.go index f7e858fa..d949927d 100755 --- a/cmd/control/install.go +++ b/cmd/control/install.go @@ -9,6 +9,7 @@ import ( "os" "os/exec" "path/filepath" + "runtime" "strconv" "strings" @@ -84,6 +85,10 @@ var installCommand = cli.Command{ } func installAction(c *cli.Context) error { + if runtime.GOARCH != "amd64" { + log.Fatalf("ros install / upgrade only supported on 'amd64', not '%s'", runtime.GOARCH) + } + if c.Args().Present() { log.Fatalf("invalid arguments %v", c.Args()) } diff --git a/cmd/control/os.go b/cmd/control/os.go index 438a2f53..d30a7f5b 100644 --- a/cmd/control/os.go +++ b/cmd/control/os.go @@ -6,6 +6,7 @@ import ( "net/http" "net/url" "os" + "runtime" "strings" "golang.org/x/net/context" @@ -167,6 +168,10 @@ func getLatestImage() (string, error) { } func osUpgrade(c *cli.Context) error { + if runtime.GOARCH != "amd64" { + log.Fatalf("ros install / upgrade only supported on 'amd64', not '%s'", runtime.GOARCH) + } + image := c.String("image") if image == "" {