Lines Matching refs:menu

115 #define	GRUB_MENU		"/boot/grub/menu.lst"
116 #define MENU_TMP "/boot/grub/menu.lst.tmp"
152 #define LU_MENU_CKSUM "/etc/lu/menu.cksum"
291 "update_entry", OPT_REQ, update_entry, 0, /* menu */
293 "upgrade", OPT_ABSENT, upgrade_menu, 0, /* menu */
294 "list_setting", OPT_OPTIONAL, list_setting, 1, /* menu */
295 "disable_hypervisor", OPT_ABSENT, cvt_to_metal, 0, /* menu */
296 "enable_hypervisor", OPT_ABSENT, cvt_to_hyper, 0, /* menu */
451 (void) fprintf(stderr, "\t%s set-menu [-R altroot] key=value\n", prog);
452 (void) fprintf(stderr, "\t%s list-menu [-R altroot]\n", prog);
568 * set-menu -- -m set_option
569 * list-menu -- -m list_entry
570 * update-menu -- -m update_entry
580 { "set-menu", BAM_MENU, "set_option"},
581 { "list-menu", BAM_MENU, "list_entry"},
582 { "update-menu", BAM_MENU, "update_entry"},
626 * -m update_entry -- update-menu
627 * -m list_entry -- list-menu
1285 menu_t *menu;
1339 * We support menu on PCFS (under certain conditions), but
1348 bam_error(_("cannot find GRUB menu\n"));
1352 BAM_DPRINTF(("%s: menu root is %s\n", fcn, menu_root));
1408 BAM_DPRINTF(("%s: cleaned menu root is <%s>\n", fcn, clean_menu_root));
1413 BAM_DPRINTF(("%s: menu path is: %s\n", fcn, menu_path));
1416 * If listing the menu, display the menu location
1419 bam_print(_("the location for the active GRUB menu is: %s\n"),
1422 if ((menu = menu_read(menu_path)) == NULL) {
1423 bam_error(_("cannot find GRUB menu file: %s\n"), menu_path);
1453 ret = f(menu, menu_root, osdev);
1455 ret = f(menu, bam_root, menu_root);
1457 ret = f(menu, menu_path, opt);
1459 ret = f(menu, ((largc > 0) ? largv[0] : ""),
1467 ret = f(menu, bam_root, NULL);
1513 ret = f(menu, bam_root, extra_args);
1516 ret = f(menu, NULL, opt);
1519 BAM_DPRINTF(("%s: writing menu to clean-menu-root: <%s>\n",
1521 ret = menu_write(clean_menu_root, menu);
1531 menu_free(menu);
1783 /* Empty GRUB menu */
3937 * Need to call this for anything that operates on the GRUB menu
4245 bam_error(_("failed to read GRUB menu checksum file: %s\n"),
4255 bam_error(_("multiple checksums for GRUB menu in "
4273 bam_error(_("error parsing GRUB menu checksum file: %s\n"),
4279 /* Get checksum of current menu */
4302 bam_error(_("error generating checksum of GRUB menu\n"));
4309 bam_error(_("bad checksum generated for GRUB menu\n"));
4325 "for GRUB menu\n"));
4335 BAM_DPRINTF(("%s: no change in checksum of GRUB menu\n", fcn));
4341 /* cksum doesn't match - the menu has changed */
4342 BAM_DPRINTF(("%s: checksum of GRUB menu has changed\n", fcn));
4345 bam_print(_("propagating updated GRUB menu\n"));
4353 bam_error(_("error propagating updated GRUB menu\n"));
4356 BAM_DPRINTF(("%s: successfully propagated GRUB menu\n", fcn));
4363 bam_error(_("failed to create backup for GRUB menu: %s\n"),
4367 BAM_DPRINTF(("%s: successfully created backup GRUB menu: %s\n",
4376 bam_error(_("error propagating backup GRUB menu: %s\n"),
4380 BAM_DPRINTF(("%s: successfully propagated backup GRUB menu: %s\n",
4388 bam_error(_("failed to write GRUB menu checksum file: %s\n"),
4401 bam_error(_("error propagating GRUB menu checksum file: %s\n"),
4500 * If user has updated menu in current BE, propagate the
4721 * A line in menu.lst looks like
4972 * No default command in menu, simply return
4991 * written back to menu.lst
5111 bam_error(_("menu file not found: %s\n"), menu_path);
5354 bam_print(_("the GRUB menu is empty\n"));
5529 /* menu bears no resemblance to our reality */
5530 bam_error(_("cannot get (hd?,?,?) for menu. menu not on "
8282 * We just want the BIOS mapping for menu disk.
8307 * Check if menu is on the boot device
8325 bam_error(_("cannot get physical device special file for menu "
8389 BAM_DPRINTF(("%s: last line in menu\n", fcn));
8583 BAM_DPRINTF(("%s: boot entry not found in menu. Creating "
8828 * menu
8923 bam_error(_("failed to set GRUB menu default to %d\n"), entry);
8987 * else treated as boot-args and setup a temperary menu entry
9026 /* If no option, delete exiting reboot menu entry */
9055 bam_error(_("failed to set GRUB menu default to %d\n"),
9062 * add a new menu entry based on opt and make it the default
9239 bam_error(_("Cannot update menu. Cannot reboot with "
9248 bam_error(_("reboot with arguments: setting GRUB menu default "
9301 "%sboot/grub/menu.lst\n"), globalcmd,
9350 return (BAM_WRITE); /* need a write to menu */
9520 bam_error(_("bootadm set-menu %s may only be run on "
9539 bam_error(_("Default /boot/grub/menu.lst entry is not "
9580 BAM_DPRINTF(("%s: read menu boot-args: %s\n",
9593 BAM_DPRINTF(("%s: read menu boot-file: %s\n",
9703 "\"/\".\nCannot generate GRUB menu entry with "
9714 "\"/\".\nCannot generate GRUB menu entry with "
9726 "\"/\".\nCannot generate GRUB menu entry with "
9948 bam_error(_("menu file not found: %s\n"), menu_path);
9970 "%sboot/grub/menu.lst\n"), globalcmd,