From 94daa75190f8327de5dd878d1e51be0b16822598 Mon Sep 17 00:00:00 2001 From: Tiago Gomes Date: Thu, 5 Mar 2015 13:49:47 +0000 Subject: installer: support new upstream config variable --- installer.configure | 3 +++ 1 file changed, 3 insertions(+) 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) ) -- cgit v1.2.1