diff --git a/config.go b/config.go index 263206b..d9e9a3e 100644 --- a/config.go +++ b/config.go @@ -18,6 +18,7 @@ type hcloudConfig struct { type flatcarConfig struct { InstallScript string `toml:"install_script"` + InstallArgs string `toml:"install_args"` Version string ConfigTemplate string `toml:"config_template"` TemplateStatic map[string]string `toml:"template_static"` diff --git a/main.go b/main.go index 3c7b7bb..4b4c59d 100644 --- a/main.go +++ b/main.go @@ -386,7 +386,7 @@ func main() { "apt update", "apt install -y gawk", fmt.Sprintf("chmod +x %s", installScriptTarget), - fmt.Sprintf("%s -s -i %s -V %s", installScriptTarget, ignitionTarget, cfg.Flatcar.Version), + fmt.Sprintf("%s -s -i %s -V %s %s", installScriptTarget, ignitionTarget, cfg.Flatcar.Version, cfg.Flatcar.InstallArgs), "shutdown -r now", } for _, command := range commands {