mirror of
https://github.com/rancher/os.git
synced 2025-09-01 14:48:55 +00:00
Use docker images for the current architecture (vs just for amd64)
Fix #828, #835
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"github.com/coreos/coreos-cloudinit/config"
|
||||
"github.com/docker/libcompose/project"
|
||||
"github.com/rancher/netconf"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -44,12 +45,20 @@ const (
|
||||
var (
|
||||
OemConfigFile = OEM + "/oem-config.yml"
|
||||
VERSION string
|
||||
ARCH string
|
||||
SUFFIX string
|
||||
)
|
||||
|
||||
func init() {
|
||||
if VERSION == "" {
|
||||
VERSION = "v0.0.0-dev"
|
||||
}
|
||||
if ARCH == "" {
|
||||
ARCH = runtime.GOARCH
|
||||
}
|
||||
if SUFFIX == "" && ARCH != "amd64" {
|
||||
SUFFIX = "_" + ARCH
|
||||
}
|
||||
}
|
||||
|
||||
type Repository struct {
|
||||
|
Reference in New Issue
Block a user