Lines Matching defs:menu

113 #define	GRUB_MENU		"/boot/grub/menu.lst"
114 #define MENU_TMP "/boot/grub/menu.lst.tmp"
150 #define LU_MENU_CKSUM "/etc/lu/menu.cksum"
288 "update_entry", OPT_REQ, update_entry, 0, /* menu */
290 "upgrade", OPT_ABSENT, upgrade_menu, 0, /* menu */
291 "list_setting", OPT_OPTIONAL, list_setting, 1, /* menu */
292 "disable_hypervisor", OPT_ABSENT, cvt_to_metal, 0, /* menu */
293 "enable_hypervisor", OPT_ABSENT, cvt_to_hyper, 0, /* menu */
448 (void) fprintf(stderr, "\t%s set-menu [-R altroot] key=value\n", prog);
449 (void) fprintf(stderr, "\t%s list-menu [-R altroot]\n", prog);
565 * set-menu -- -m set_option
566 * list-menu -- -m list_entry
567 * update-menu -- -m update_entry
577 { "set-menu", BAM_MENU, "set_option"},
578 { "list-menu", BAM_MENU, "list_entry"},
579 { "update-menu", BAM_MENU, "update_entry"},
623 * -m update_entry -- update-menu
624 * -m list_entry -- list-menu
1282 menu_t *menu;
1336 * We support menu on PCFS (under certain conditions), but
1345 bam_error(_("cannot find GRUB menu\n"));
1349 BAM_DPRINTF(("%s: menu root is %s\n", fcn, menu_root));
1405 BAM_DPRINTF(("%s: cleaned menu root is <%s>\n", fcn, clean_menu_root));
1410 BAM_DPRINTF(("%s: menu path is: %s\n", fcn, menu_path));
1413 * If listing the menu, display the menu location
1416 bam_print(_("the location for the active GRUB menu is: %s\n"),
1419 if ((menu = menu_read(menu_path)) == NULL) {
1420 bam_error(_("cannot find GRUB menu file: %s\n"), menu_path);
1450 ret = f(menu, menu_root, osdev);
1452 ret = f(menu, bam_root, menu_root);
1454 ret = f(menu, menu_path, opt);
1456 ret = f(menu, ((largc > 0) ? largv[0] : ""),
1464 ret = f(menu, bam_root, NULL);
1510 ret = f(menu, bam_root, extra_args);
1513 ret = f(menu, NULL, opt);
1516 BAM_DPRINTF(("%s: writing menu to clean-menu-root: <%s>\n",
1518 ret = menu_write(clean_menu_root, menu);
1528 menu_free(menu);
1780 /* Empty GRUB menu */
3934 * Need to call this for anything that operates on the GRUB menu
4218 bam_error(_("failed to read GRUB menu checksum file: %s\n"),
4228 bam_error(_("multiple checksums for GRUB menu in "
4246 bam_error(_("error parsing GRUB menu checksum file: %s\n"),
4252 /* Get checksum of current menu */
4275 bam_error(_("error generating checksum of GRUB menu\n"));
4282 bam_error(_("bad checksum generated for GRUB menu\n"));
4298 "for GRUB menu\n"));
4308 BAM_DPRINTF(("%s: no change in checksum of GRUB menu\n", fcn));
4314 /* cksum doesn't match - the menu has changed */
4315 BAM_DPRINTF(("%s: checksum of GRUB menu has changed\n", fcn));
4318 bam_print(_("propagating updated GRUB menu\n"));
4326 bam_error(_("error propagating updated GRUB menu\n"));
4329 BAM_DPRINTF(("%s: successfully propagated GRUB menu\n", fcn));
4336 bam_error(_("failed to create backup for GRUB menu: %s\n"),
4340 BAM_DPRINTF(("%s: successfully created backup GRUB menu: %s\n",
4349 bam_error(_("error propagating backup GRUB menu: %s\n"),
4353 BAM_DPRINTF(("%s: successfully propagated backup GRUB menu: %s\n",
4361 bam_error(_("failed to write GRUB menu checksum file: %s\n"),
4374 bam_error(_("error propagating GRUB menu checksum file: %s\n"),
4473 * If user has updated menu in current BE, propagate the
4694 * A line in menu.lst looks like
4945 * No default command in menu, simply return
4964 * written back to menu.lst
5084 bam_error(_("menu file not found: %s\n"), menu_path);
5327 bam_print(_("the GRUB menu is empty\n"));
5502 /* menu bears no resemblance to our reality */
5503 bam_error(_("cannot get (hd?,?,?) for menu. menu not on "
8023 * We just want the BIOS mapping for menu disk.
8048 * Check if menu is on the boot device
8066 bam_error(_("cannot get physical device special file for menu "
8130 BAM_DPRINTF(("%s: last line in menu\n", fcn));
8324 BAM_DPRINTF(("%s: boot entry not found in menu. Creating "
8569 * menu
8664 bam_error(_("failed to set GRUB menu default to %d\n"), entry);
8728 * else treated as boot-args and setup a temperary menu entry
8767 /* If no option, delete exiting reboot menu entry */
8796 bam_error(_("failed to set GRUB menu default to %d\n"),
8803 * add a new menu entry based on opt and make it the default
8980 bam_error(_("Cannot update menu. Cannot reboot with "
8989 bam_error(_("reboot with arguments: setting GRUB menu default "
9042 "%sboot/grub/menu.lst\n"), globalcmd,
9091 return (BAM_WRITE); /* need a write to menu */
9261 bam_error(_("bootadm set-menu %s may only be run on "
9280 bam_error(_("Default /boot/grub/menu.lst entry is not "
9321 BAM_DPRINTF(("%s: read menu boot-args: %s\n",
9334 BAM_DPRINTF(("%s: read menu boot-file: %s\n",
9444 "\"/\".\nCannot generate GRUB menu entry with "
9455 "\"/\".\nCannot generate GRUB menu entry with "
9467 "\"/\".\nCannot generate GRUB menu entry with "
9689 bam_error(_("menu file not found: %s\n"), menu_path);
9711 "%sboot/grub/menu.lst\n"), globalcmd,