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

Start rngd before format the disk

(cherry picked from commit d7f47925a1)
This commit is contained in:
niusmallnan
2018-09-14 16:34:09 +08:00
parent bffa058379
commit bcce7cc32c
4 changed files with 17 additions and 0 deletions

View File

@@ -169,6 +169,7 @@ var schema = `{
"required": {"type": "boolean"},
"autoformat": {"$ref": "#/definitions/list_of_strings"},
"mdadm_scan": {"type": "boolean"},
"rngd": {"type": "boolean"},
"script": {"type": "string"},
"oem_fstype": {"type": "string"},
"oem_dev": {"type": "string"}

View File

@@ -200,6 +200,7 @@ type StateConfig struct {
Required bool `yaml:"required,omitempty"`
Autoformat []string `yaml:"autoformat,omitempty"`
MdadmScan bool `yaml:"mdadm_scan,omitempty"`
Rngd bool `yaml:"rngd,omitempty"`
Script string `yaml:"script,omitempty"`
OemFsType string `yaml:"oem_fstype,omitempty"`
OemDev string `yaml:"oem_dev,omitempty"`