本文整理汇总了Python中solaris_install.engine.InstallEngine.register_checkpoint方法的典型用法代码示例。如果您正苦于以下问题:Python InstallEngine.register_checkpoint方法的具体用法?Python InstallEngine.register_checkpoint怎么用?Python InstallEngine.register_checkpoint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类solaris_install.engine.InstallEngine
的用法示例。
在下文中一共展示了InstallEngine.register_checkpoint方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: prepare_engine
# 需要导入模块: from solaris_install.engine import InstallEngine [as 别名]
# 或者: from solaris_install.engine.InstallEngine import register_checkpoint [as 别名]
def prepare_engine(options):
''' Instantiate the engine, setup logging, and register all
the checkpoints to be used for doing the install.
'''
eng = InstallEngine(debug=options.debug)
# setup_logging() must be called after the engine is initialized.
setup_logging(options.logname, options.log_level)
terminalui.init_logging(INSTALL_LOGGER_NAME)
# Information regarding checkpoints used for the Text Installer.
# The values specified are used as arguments for registering the
# checkpoint. If function signature for any of the checkpoints are
# is modified, these values need to be modified as well.
eng.register_checkpoint(TARGET_DISCOVERY,
"solaris_install/target/discovery",
"TargetDiscovery")
eng.register_checkpoint(TRANSFER_PREP,
"solaris_install/transfer/media_transfer",
"init_prepare_media_transfer")
eng.register_checkpoint(VAR_SHARED_DATASET,
"solaris_install/target/varshared",
"VarSharedDataset")
eng.register_checkpoint(TARGET_INIT,
"solaris_install/target/instantiation",
"TargetInstantiation")
# The following 3 are transfer checkpoints
eng.register_checkpoint(TRANSFER_ROOT,
"solaris_install/transfer/cpio",
"TransferCPIO")
eng.register_checkpoint(TRANSFER_MISC,
"solaris_install/transfer/cpio",
"TransferCPIO")
eng.register_checkpoint(TRANSFER_MEDIA,
"solaris_install/transfer/cpio",
"TransferCPIO")
# sys config checkpoint must be registered after transfer checkpoints
sysconfig.register_checkpoint()
# rest of the checkpoints are for finishing up the install process
eng.register_checkpoint(CLEANUP_CPIO_INSTALL,
"solaris_install/ict/cleanup_cpio_install",
"CleanupCPIOInstall")
eng.register_checkpoint(INIT_SMF,
"solaris_install/ict/initialize_smf",
"InitializeSMF")
eng.register_checkpoint(BOOT_CONFIG,
"solaris_install/boot/boot",
"SystemBootMenu")
eng.register_checkpoint(DUMP_ADMIN,
"solaris_install/ict/update_dumpadm",
"UpdateDumpAdm")
eng.register_checkpoint(DEVICE_CONFIG,
"solaris_install/ict/device_config",
"DeviceConfig")
eng.register_checkpoint(APPLY_SYSCONFIG,
"solaris_install/ict/apply_sysconfig",
"ApplySysConfig")
eng.register_checkpoint(BOOT_ARCHIVE,
"solaris_install/ict/boot_archive",
"BootArchive")
# Build up list of files to be added to DataObjectCache for transfer
# to new boot environment.
tf_dict = dict()
tf_dict['/var/adm/messages'] = post_install_logs_path('messages')
add_transfer_files_to_doc(TRANSFER_FILES, tf_dict)
eng.register_checkpoint(TRANSFER_FILES,
"solaris_install/ict/transfer_files",
"TransferFiles")
eng.register_checkpoint(CREATE_SNAPSHOT,
"solaris_install/ict/create_snapshot",
"CreateSnapshot")