diff options
author | Christian Breunig <christian@breunig.cc> | 2024-05-17 15:37:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-17 15:37:39 +0200 |
commit | be1d2fae7810962dae1231e66b63fa38af071a56 (patch) | |
tree | 61d05c0a4caedc668a3f791458fc87395e8fae8c /scripts/image-build/defaults.py | |
parent | 30f61940b79daece00ceaa43f30b9711f28297cb (diff) | |
parent | 8186e82024cdeee9c6fd09bdd0603f4571842f42 (diff) | |
download | vyos-build-be1d2fae7810962dae1231e66b63fa38af071a56.tar.gz vyos-build-be1d2fae7810962dae1231e66b63fa38af071a56.zip |
Merge pull request #622 from zdc/T3664-circinus
build-script: T3664: Allowed all options in both config file and comm…
Diffstat (limited to 'scripts/image-build/defaults.py')
-rw-r--r-- | scripts/image-build/defaults.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/image-build/defaults.py b/scripts/image-build/defaults.py index 9fd5eeed..a0c5c8bf 100644 --- a/scripts/image-build/defaults.py +++ b/scripts/image-build/defaults.py @@ -17,6 +17,11 @@ import os +import getpass +import platform + +def get_default_build_by(): + return "{user}@{host}".format(user= getpass.getuser(), host=platform.node()) # Default boot settings boot_settings: dict[str, str] = { @@ -27,6 +32,17 @@ boot_settings: dict[str, str] = { 'bootmode': 'normal' } +# Hardcoded default values +HARDCODED_BUILD = { + 'custom_apt_entry': [], + 'custom_apt_key': [], + 'custom_package': [], + 'reuse_iso': None, + 'disk_size': 10, + 'build_by': get_default_build_by(), + 'build_comment': '', +} + # Relative to the repository directory BUILD_DIR = 'build' |