Lines Matching refs:menu

32  * Loader menu management.
59 #define MENU BOOT_DIR "/menu.lst"
75 static error_t list_setting(struct menu_lst *menu, char *, char *);
83 "update_entry", OPT_REQ, update_entry, 0, /* menu */
85 "list_setting", OPT_OPTIONAL, list_setting, 1, /* menu */
86 "disable_hypervisor", OPT_ABSENT, disable_hyper, 0, /* menu */
87 "enable_hypervisor", OPT_ABSENT, enable_hyper, 0, /* menu */
161 count_widths(struct hdr_info *hdr, struct menu_lst *menu)
170 STAILQ_FOREACH(entry, menu, next) {
182 struct menu_lst *menu)
193 STAILQ_FOREACH(entry, menu, next) {
216 print_nodes(boolean_t parsable, struct menu_lst *menu)
222 count_widths(&hdr, menu);
226 print_menu_nodes(parsable, &hdr, menu);
230 menu_read(struct menu_lst *menu, char *menu_path)
246 * menu.lst entry is on two lines, one for title, one for bootfs
311 STAILQ_INSERT_TAIL(menu, mp, next);
319 menu_free(struct menu_lst *menu)
322 STAILQ_FOREACH(entry, menu, next) {
323 STAILQ_REMOVE_HEAD(menu, next);
346 struct menu_lst menu = {0};
348 STAILQ_INIT(&menu);
383 bam_error(_("cannot find menu\n"));
424 BAM_DPRINTF(("%s: cleaned menu root is <%s>\n", fcn, clean_menu_root));
429 BAM_DPRINTF(("%s: menu path is: %s\n", fcn, menu_path));
433 * and needs to create menu.lst file for loader
435 if (menu_read(&menu, menu_path) == BAM_ERROR &&
437 bam_error(_("cannot find menu file: %s\n"), menu_path);
444 * If listing the menu, display the menu location
447 bam_print(_("the location for the active menu is: %s\n"),
468 ret = f(&menu, menu_root, osdev);
470 ret = f(&menu, bam_root, menu_root);
472 ret = f(&menu, menu_path, opt);
474 ret = f(&menu, ((largc > 0) ? largv[0] : ""),
482 ret = f(&menu, bam_root, NULL);
528 ret = f(&menu, bam_root, extra_args);
531 ret = f(&menu, NULL, opt);
534 BAM_DPRINTF(("%s: writing menu to clean-menu-root: <%s>\n",
536 /* ret = menu_write(clean_menu_root, menu); */
546 menu_free(&menu);
563 set_option(struct menu_lst *menu, char *dummy, char *opt)
574 assert(menu);
590 STAILQ_FOREACH(entry, menu, next) {
747 * display details of menu entry or single property
928 list_entry(struct menu_lst *menu, char *menu_root, char *opt)
936 print_nodes(B_FALSE, menu);
955 STAILQ_FOREACH(entry, menu, next) {
974 * bootadm update-menu -R /a -Z -o rdisk
979 update_entry(struct menu_lst *menu, char *menu_root, char *osdev)
1013 update_temp(struct menu_lst *menu, char *dummy, char *opt)
1133 list_setting(struct menu_lst *menu, char *which, char *setting)
1170 STAILQ_FOREACH(m, menu, next) {
1185 STAILQ_FOREACH(m, menu, next)
1200 disable_hyper(struct menu_lst *menu, char *osroot, char *opt)
1211 enable_hyper(struct menu_lst *menu, char *osroot, char *opt)