1
0
mirror of https://github.com/rancher/os.git synced 2025-09-02 15:24:32 +00:00

Support OEM partition and oem-config.yml

This commit is contained in:
Darren Shepherd
2015-12-19 22:26:09 -07:00
parent cd2829d220
commit 1a95080522
7 changed files with 79 additions and 9 deletions

View File

@@ -7,6 +7,7 @@ import (
)
const (
OEM = "/usr/share/ros/oem"
DOCKER_BIN = "/usr/bin/docker"
DOCKER_DIST_BIN = "/usr/bin/docker.dist"
ROS_BIN = "/usr/bin/ros"
@@ -40,7 +41,8 @@ const (
)
var (
VERSION string
OemConfigFile = OEM + "/oem-config.yml"
VERSION string
)
func init() {
@@ -111,6 +113,8 @@ type StateConfig struct {
Required bool `yaml:"required,omitempty"`
Autoformat []string `yaml:"autoformat,omitempty"`
FormatZero bool `yaml:"formatzero,omitempty"`
OemFsType string `yaml:"oem_fstype,omitempty"`
OemDev string `yaml:"oem_dev,omitempty"`
}
type CloudInit struct {