Lines Matching defs:BootConfig

39 from bootmgmt.bootconfig import (BootConfig, DiskBootConfig, NetBootConfig,
160 """Probe for Legacy GRUB files for use with the BootConfig passed
169 if (bootconfig.boot_class != BootConfig.BOOT_CLASS_NET and
175 if (bootconfig.boot_class == BootConfig.BOOT_CLASS_DISK and
178 elif bootconfig.boot_class == BootConfig.BOOT_CLASS_ODD:
180 elif bootconfig.boot_class == BootConfig.BOOT_CLASS_NET:
362 if bootconfig.boot_class == BootConfig.BOOT_CLASS_DISK:
364 elif bootconfig.boot_class == BootConfig.BOOT_CLASS_NET:
386 if self._boot_config.boot_class == BootConfig.BOOT_CLASS_DISK:
389 elif self._boot_config.boot_class == BootConfig.BOOT_CLASS_NET:
400 # Add the boot instances to the BootConfig instance:
408 information from the BootConfig instance to which we have a reference.
421 if self._boot_config.boot_class == BootConfig.BOOT_CLASS_DISK:
423 elif self._boot_config.boot_class == BootConfig.BOOT_CLASS_ODD:
425 elif self._boot_config.boot_class == BootConfig.BOOT_CLASS_NET:
433 type of BootConfig stored in self._boot_config
440 if boot_class == BootConfig.BOOT_CLASS_NET:
441 # If the BootConfig is class net, we need to change the menu.lst
447 elif boot_class == BootConfig.BOOT_CLASS_ODD:
451 elif boot_class == BootConfig.BOOT_CLASS_DISK:
455 raise BootmgmtUnsupportedOperationError('Unknown BootConfig '
465 if self._boot_config.boot_class == BootConfig.BOOT_CLASS_DISK:
470 # Legacy GRUB methods for dealing with a disk-based BootConfig
594 # Add the platform value from the associated BootConfig so that
606 # boot instance, we depend on the parent BootConfig
707 if (item[BootConfig.IDX_FILETYPE] == BootConfig.OUTPUT_TYPE_FILE
709 item[BootConfig.IDX_DESTNAME] == self.MENU_LST_PATH):
714 item[BootConfig.IDX_DESTNAME] = (
720 # BootConfig's boot_instances list (this may need to be
727 item[BootConfig.IDX_DESTNAME] = (
728 '%(' + BootConfig.TOKEN_SYSTEMROOT + ')s' +
730 item[BootConfig.IDX_INSTANCE] = inst
752 if (item[BootConfig.IDX_FILETYPE] == BootConfig.OUTPUT_TYPE_FILE
754 item[BootConfig.IDX_DESTNAME] == self.MENU_LST_PATH):
758 item[BootConfig.IDX_DESTNAME] = (
759 '%(' + BootConfig.TOKEN_SYSTEMROOT + ')s' +
775 tuples += [(BootConfig.OUTPUT_TYPE_BIOS_ELTORITO,
795 if not item[BootConfig.IDX_DESTNAME]:
801 if item[BootConfig.IDX_DESTNAME].find(menulstfile) != -1:
802 item[BootConfig.IDX_FILETYPE] = \
803 BootConfig.OUTPUT_TYPE_NETCONFIG
804 item[BootConfig.IDX_DESTNAME] = ('%(' +
806 item[BootConfig.IDX_DESTNAME])
811 tuples += [(BootConfig.OUTPUT_TYPE_BIOS_NBP,
823 # Generic support methods for all BootConfig classes
831 individual BootInstance objects that comprise the BootConfig.
964 # iterate through the list of boot instances in the BootConfig