Lines Matching refs:bootconfig

39 from bootmgmt.bootconfig import (BootConfig, DiskBootConfig, NetBootConfig,
42 from bootmgmt.bootconfig import ChainDiskBootInstance
163 bootconfig = kwargs.get('bootconfig')
165 if (bootconfig is None or bootconfig.boot_class is None):
169 if (bootconfig.boot_class != BootConfig.BOOT_CLASS_NET and
175 if (bootconfig.boot_class == BootConfig.BOOT_CLASS_DISK and
176 bootconfig.boot_fstype is not None):
178 elif bootconfig.boot_class == BootConfig.BOOT_CLASS_ODD:
180 elif bootconfig.boot_class == BootConfig.BOOT_CLASS_NET:
182 cls._validate_platform_and_firmware(bootconfig,
191 'supported.' % bootconfig.boot_class)
198 bootconfig = kwargs.get('bootconfig')
200 root = bootconfig.get_root()
217 bootconfig = kwargs.get('bootconfig')
219 artifacts = cls._probe_artifacts_net(bootconfig)
236 bootconfig = kwargs.get('bootconfig')
238 artifacts = cls._probe_artifacts_disk(bootconfig)
271 def _probe_artifacts_net(cls, bootconfig):
274 root = bootconfig.get_root()
287 menu_lst = os.path.join(bootconfig.net_data_root,
289 bootconfig.pxe_suffix())
300 def _probe_artifacts_disk(cls, bootconfig):
303 fstype = bootconfig.boot_fstype
305 bootloader = getattr(bootconfig, 'boot_loader', None)
310 dataroot = bootconfig.get_root()
315 cfgdataroot = bootconfig.zfstop
358 def probe_artifacts(cls, bootconfig):
360 bootconfig to use for directory information.
362 if bootconfig.boot_class == BootConfig.BOOT_CLASS_DISK:
363 return cls._probe_artifacts_disk(bootconfig)
364 elif bootconfig.boot_class == BootConfig.BOOT_CLASS_NET:
365 return cls._probe_artifacts_net(bootconfig)