diff options
-rwxr-xr-x | scripts/build-vyos-image | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/build-vyos-image b/scripts/build-vyos-image index 95ce3125..7cef0107 100755 --- a/scripts/build-vyos-image +++ b/scripts/build-vyos-image @@ -441,6 +441,15 @@ DOCUMENTATION_URL="{build_config['documentation_url']}" with open(file_path, 'w') as f: f.write(i["data"]) + ## Create the default config + ## Technically it's just another includes.chroot entry, + ## but it's special enough to warrant making it easier for flavor writers + if has_nonempty_key(build_config, "default_config"): + file_path = os.path.join(chroot_includes_dir, "opt/vyatta/etc/config.boot.default") + os.makedirs(os.path.dirname(file_path), exist_ok=True) + with open(file_path, 'w') as f: + f.write(build_config["default_config"]) + ## Configure live-build lb_config_tmpl = jinja2.Template(""" lb config noauto \ |