diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-03-05 13:49:47 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-03-06 16:47:09 +0000 |
commit | 94daa75190f8327de5dd878d1e51be0b16822598 (patch) | |
tree | 7e02c66b370296a1dc1338a677e5e38154fb0e26 | |
parent | 6b3c7ee5609969c53889ab9691aa41e30ad6f9f3 (diff) | |
download | definitions-94daa75190f8327de5dd878d1e51be0b16822598.tar.gz |
installer: support new upstream config variable
-rwxr-xr-x | installer.configure | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/installer.configure b/installer.configure index a77dc851..e076d6d7 100755 --- a/installer.configure +++ b/installer.configure @@ -23,6 +23,7 @@ # * INSTALLER_TARGET_STORAGE_DEVICE # * INSTALLER_ROOTFS_TO_INSTALL # * INSTALLER_POST_INSTALL_COMMAND (optional, defaults to `reboot -f`) +# * INSTALLER_CREATE_BOOT_PARTITION (optional, defaults no no) import os import sys @@ -41,6 +42,8 @@ except KeyError as e: postinstkey = 'INSTALLER_POST_INSTALL_COMMAND' installer_configuration[postinstkey] = os.environ.get(postinstkey, 'reboot -f') +installer_configuration['INSTALLER_CREATE_BOOT_PARTITION'] = os.environ.get( + 'INSTALLER_CREATE_BOOT_PARTITION') with open(install_config_file, 'w') as f: f.write( yaml.dump(installer_configuration, default_flow_style=False) ) |