示例#1
0
def execute(name, ks_config, config, root):

	if ks_config:
		if 'partitions' in ks_config:
			partitions = ks_config['partitions']
		else:
			partitions = commons.default_partitions
		config['disk'] = commons.partition_disk(ks_config['disk'], partitions)
def execute(name, ks_config, config, root):

    if ks_config:
        if 'partitions' in ks_config:
            partitions = ks_config['partitions']
        else:
            partitions = commons.default_partitions
        config['disk'] = commons.partition_disk(ks_config['disk'], partitions)
示例#3
0
def execute(name, ks_config, config, root):

	if ks_config:
		docker_partition_size = None
		swap_partition_size = None
		if 'docker_partition_size' in ks_config:
			docker_partition_size = ks_config['docker_partition_size']
		if 'swap_partition_size' in ks_config:
			swap_partition_size = ks_config['swap_partition_size']
		config['disk'] = commons.partition_disk(ks_config['disk'], docker_partition_size, swap_partition_size)