Lines Matching defs:menu

126 	 * need pool name, menu.lst has entries from our pool only
597 * Description: Appends an entry for a BE into the menu.lst.
599 * be_name - pointer to name of BE to add boot menu entry for.
601 * boot_pool - Used if the pool containing the grub menu is
670 "the default BE in the grub menu.\n"), be_root_pool);
689 * Iterate through menu first to make sure the BE doesn't already
690 * have an entry in the menu.
692 * Additionally while iterating through the menu, if we have an
694 * track of that BE's menu entry. We will then use the lines from
801 * If an entry for this BE was already in the menu, then if
815 "entry '%s' in boot menu.\n"), be_name);
827 "to open menu.lst file %s\n"), menu_file);
894 * Description: Removes a BE's entry from a menu.lst file.
897 * the menu.lst file.
900 * the pool containing the boot menu. If this is
915 char menu[MAXPATHLEN];
969 "the default BE in the grub menu.\n"), be_root_pool);
974 /* Get path to boot menu */
975 (void) strlcpy(menu, pool_mntpnt, sizeof (menu));
981 (void) strlcat(menu, BE_GRUB_MENU, sizeof (menu));
983 (void) strlcat(menu, BE_SPARC_MENU, sizeof (menu));
985 /* Get handle to boot menu file */
986 if ((ret = be_open_menu(be_root_pool, menu, &menu_fp, "r",
997 /* Grab the stats of the original menu file */
998 if (stat(menu, &sb) != 0) {
1001 "failed to stat file %s: %s\n"), menu, strerror(err));
1006 /* Create a tmp file for the modified menu.lst */
1007 tmp_menu_len = strlen(menu) + 7;
1014 (void) strlcpy(tmp_menu, menu, tmp_menu_len);
1189 /* Copy the modified menu.lst into place */
1190 if (rename(tmp_menu, menu) != 0) {
1194 tmp_menu, menu, strerror(err));
1203 * adjust the default value in the menu.lst. If the
1218 * menu.lst file. This may be overkill, but to
1223 /* Get handle to boot menu file */
1224 if ((menu_fp = fopen(menu, "r")) == NULL) {
1227 "failed to open menu.lst (%s): %s\n"),
1228 menu, strerror(err));
1233 /* Create a tmp file for the modified menu.lst */
1234 tmp_menu_len = strlen(menu) + 7;
1243 (void) strlcpy(tmp_menu, menu, tmp_menu_len);
1293 /* Copy the modified menu.lst into place */
1294 if (rename(tmp_menu, menu) != 0) {
1298 tmp_menu, menu, strerror(err));
1309 if (chmod(menu, sb.st_mode) != 0) {
1312 "failed to chmod %s: %s\n"), menu, strerror(err));
1316 if (chown(menu, sb.st_uid, sb.st_gid) != 0) {
1319 "failed to chown %s: %s\n"), menu, strerror(err));
1351 * the grub menu. If no default entry is found with a valid bootfs
1355 * grub menu can be found.
1418 "the default BE in the grub menu.\n"));
1502 * menu and the root pool where the path to the grub menu exists.
1503 * The code takes this and finds the BE's entry in the grub menu
1510 * grub menu can be found.
1579 "the default BE in the grub menu.\n"), be_root_pool);
1598 /* Grab the stats of the original menu file */
1607 /* Create a tmp file for the modified menu.lst */
1659 "to find entry for %s in the grub menu\n"),
1738 * an existing entry in the grub menu to the new name of the BE.
1742 * be_root_pool - The pool which contains the grub menu
1744 * the pool containing the boot menu. If this is
1804 "the default BE in the grub menu.\n"));
1836 /* Grab the stat of the original menu file */
1846 /* Create tmp file for modified menu.lst */
2023 * menu.
2026 * be_root_pool - The pool which contains the boot menu
2078 "the default BE in the grub menu.\n"), be_root_pool);
3101 return (gettext("Missing boot menu file."));
3103 return (gettext("Invalid path for menu.lst file"));
3864 * This function is used if no menu.lst file exists. In
3868 * pool - The name of the pool the menu.lst file is on
3922 * The grub menu is missing so we need to create it
3960 * The menu file doesn't exist so we need to create a
4008 * This function is used it open the menu.lst file. If this
4013 * pool - The name of the pool the menu.lst file is on
4018 * mode - the original mode to be used for opening the menu.lst
4020 * create_menu - If this is true and the menu.lst file does not
4045 be_print_err(gettext("be_open_menu: menu.lst "
4051 be_print_err(gettext("WARNING: menu.lst "
4053 "a new menu.lst file\n"), menu_file);
4066 "to open menu.lst file %s\n"), menu_file);