Lines Matching refs:grub_file
1441 char grub_file[MAXPATHLEN]; in be_default_grub_bootfs() local
1496 (void) snprintf(grub_file, MAXPATHLEN, "%s%s", in be_default_grub_bootfs()
1499 if ((ret = be_open_menu((char *)be_root_pool, grub_file, in be_default_grub_bootfs()
1594 char grub_file[MAXPATHLEN]; in be_change_grub_default() local
1662 (void) snprintf(grub_file, MAXPATHLEN, "%s%s", in be_change_grub_default()
1665 if ((ret = be_open_menu(be_root_pool, grub_file, in be_change_grub_default()
1677 if (stat(grub_file, &sb) != 0) { in be_change_grub_default()
1680 "failed to stat file %s: %s\n"), grub_file, strerror(err)); in be_change_grub_default()
1686 temp_grub_len = strlen(grub_file) + 7; in be_change_grub_default()
1694 (void) strlcpy(temp_grub, grub_file, temp_grub_len); in be_change_grub_default()
1765 if (rename(temp_grub, grub_file) != 0) { in be_change_grub_default()
1769 temp_grub, grub_file, strerror(err)); in be_change_grub_default()
1777 if (chmod(grub_file, sb.st_mode) != 0) { in be_change_grub_default()
1780 "failed to chmod %s: %s\n"), grub_file, strerror(err)); in be_change_grub_default()
1784 if (chown(grub_file, sb.st_uid, sb.st_gid) != 0) { in be_change_grub_default()
1787 "failed to chown %s: %s\n"), grub_file, strerror(err)); in be_change_grub_default()