Lines Matching refs:entry

82     """MenuConfigEntry represents one menu entry (section) from a
83 MenuConfigParser. Each entry is linked with the MenuConfigParser that
193 """Returns the string representation of this menu configuration entry
216 """Compares two MenuConfigEntry instances. the entry with the
217 most-recent modified timestamp wins, otherwise, the entry with the
243 of which describes a single Solaris boot entry in the
256 title=<Menu entry title> [Required]
257 default={True|False} # If this is the default boot entry
258 transient={True|False} # If this is a transient entry
324 list and adds them to the entry list. Also loads the meta and
340 except ValueError: # Not an int, ignore entry
350 self._debug('Adding entry to list:\n%s', new_entry)
379 """Add an entry to the menu configuration file.
383 the properties used to initialize the new menu entry.
391 self._debug('Added new entry:\n%s', newent)
395 def delete_entry(self, entry):
396 """Delete an entry by matching the object address to one in the list.
398 self.delete_entries(cmp_fn=(lambda x: entry == x), match_all=False)
403 or by invoking cmp_fn for each entry in the entry list. If cmp_fn
404 returns True, that entry is deleted. cmp_fn takes 1 argument--
405 the entry instance to consider for deletion).
428 for idx, entry in enumerate(self.entry_list):
429 if ((section_name and section_name == entry.section[0]) or
430 (cmp_fn and cmp_fn(section_name, entry))):
431 self._debug('Deleting entry %s', str(entry.section))
487 MenuConfigParser's entry list, it's possible for this function to
521 for entry in self.entry_list:
522 string_list = [str(x) for x in entry.section]
530 for key, value in entry.options.items():
1587 # part of the menu entry
1641 # Set the default entry based on the list of default boot instances
1753 for entry in listing:
1754 source_file = os.path.join(dirnm, entry)
3128 instance (and, therefore, menu entry)) and to synch a list of boot
3183 # in the menu.conf file (including the transient entry, if it exists).
3203 for inst in inst_list: # Add a menu.conf entry for each generated BE
3238 # for the order property, and synchronizing the menu entry with the
3255 # Synch boot instance to custom entry:
3358 # exist on the system, that order entry is ignored
3402 single entry-type section in the menu.conf file.
3407 for entry in self._mcp.entry_list:
3410 if len(entry.section) != 2:
3413 boot_inst = self._propdict_to_boot_instance(entry.section[0],
3414 entry.options)
3415 # Store the menu.conf entry this boot instance was created from
3417 boot_inst._menu_conf_entry = entry
3449 that holds variables that may be used by the menu entry
3552 # GRUB2 to only process the menu entry when running on that target.
3569 entry = func(bootinst, target)
3570 for line in entry:
3584 self._debug('Not emitting entry for instance type %s (title=%s)',
3605 entry = []
3613 entry.append('insmod efinet')
3615 entry.append('insmod pxe')
3625 return self._write_menuentry_generic(bootinst, entry, None, kargs)
3631 entry = []
3639 entry.append('insmod iso9660')
3645 entry.append(search)
3647 return self._write_menuentry_generic(bootinst, entry, None, kargs)
3653 entry = []
3656 entry.append('insmod part_msdos')
3657 entry.append('insmod part_sunpc')
3658 entry.append('insmod part_gpt')
3659 entry.append('')
3670 entry.append(search)
3676 bootinst, entry, kargs)
3695 entry.append('load_video')
3697 # Common code for the remainder of the entry:
3698 return self._write_menuentry_generic(bootinst, entry, rootpath, kargs,
3723 def _write_menuentry_generic(self, bootinst, entry, rootpath, kargs,
3748 entry.append('if cpuid -l; then')
3749 entry.append('\tset ISADIR=amd64')
3750 entry.append('else')
3751 entry.append('\tset ISADIR=')
3752 entry.append('fi')
3761 entry.append('set kern=%s' % kernel)
3763 entry.append('echo -n "Loading ${root}%s$kern: "' % rootpath)
3764 entry.append('%s %s/$kern $kern %s' % (multiboot, rootpath, kargs))
3766 entry.append(gfxpayload_modes)
3767 entry.append('insmod gzio')
3769 entry.append('echo -n "Loading ${root}%s: "' % bootarch_string)
3770 entry.append('%s %s' % (module, bootarch_string))
3780 entry.append('echo -n "Loading ${root}$kern: "')
3781 entry.append('%s $kern %s %s' % (multiboot, ba_rel_kern, kargs))
3783 entry.append(gfxpayload_modes)
3784 entry.append('insmod gzio')
3785 entry.append('echo -n "Loading ${root}%s: "' % boot_archive)
3786 entry.append('%s %s' % (module, boot_archive))
3788 return entry
3790 def _handle_zfs_encrypted_dataset(self, rpool, bootfs, entry):
3803 entry.append('insmod zfscrypt')
3804 entry.append('echo -n "[Encrypted dataset %s] " ' % dataset_name)
3805 entry.append('zfskey')
3810 def _handle_zfs_SolarisDiskBootInstance(self, bootinst, entry, kargs):
3812 kargs to use in the entry.
3821 entry.append('# Cannot determine the root pool for this entry.')
3824 entry.append('insmod zfs')
3826 entry.append('')
3829 entry.append(search_cmd)
3832 is_encrypted = self._handle_zfs_encrypted_dataset(rpool, bootfs, entry)
3836 entry.append('zfs-bootfs %s/ zfs_bootfs' % rootpath)
3838 entry.append('zfs-defaultbootfs $root zfs_rootpath zfs_bootfs')
3852 entry = []
3861 entry.append('# Could not process this chainload entry')
3862 return entry
3892 entry.append('set root=%s' % diskstr)
3895 entry.append('parttool %s boot+' % diskstr)
3898 entry.append('chainloader --force %s+%s' %
3901 entry.append('chainloader --force +%s' % inst.chaincount)
3903 return entry