Lines Matching refs:osroot
1294 char *osroot;
1317 osdev = osroot = NULL;
1324 osroot = strtok(NULL, ",");
1325 if (osroot) {
1326 /* fixup bam_root so that it points at osroot */
1327 if (realpath(osroot, rootbuf) == NULL) {
1329 osroot, strerror(errno));
5366 create_diskmap(char *osroot)
5378 ret = snprintf(path, sizeof (path), "%s/%s", osroot,
5382 "path too long\n"), osroot);
5389 "%s/%s > /dev/null", osroot, CREATE_DISKMAP);
5510 get_grubroot(char *osroot, char *osdev, char *menu_root)
5528 if (menu_root && !menu_on_bootdisk(osroot, menu_root)) {
5540 fp = create_diskmap(osroot);
5543 osroot);
5779 find_ufs_existing(char *osroot)
5784 sign = find_primary_common(osroot, "ufs");
5786 sign = find_backup_common(osroot, "ufs");
6245 find_existing_sign(char *osroot, char *osdev, char *fstype)
6252 return (find_ufs_existing(osroot));
7089 get_fstype(char *osroot)
7098 INJECT_ERROR1("GET_FSTYPE_OSROOT", osroot = NULL);
7099 if (osroot == NULL) {
7113 if (*osroot == '\0')
7116 mpref.mnt_mountp = osroot;
7122 osroot, MNTTAB);
7130 bam_error(_("NULL fstype found for OS root %s\n"), osroot);
7292 set_backup_ufs(char *osroot, char *sign)
7296 BAM_DPRINTF(("%s: entered. args: %s %s\n", fcn, osroot, sign));
7297 return (set_backup_common(osroot, sign));
7343 set_backup(char *osroot, char *osdev, char *sign, char *fstype)
7352 ret = set_backup_ufs(osroot, sign);
7439 set_primary_ufs(char *osroot, char *sign)
7443 BAM_DPRINTF(("%s: entered. args: %s %s\n", fcn, osroot, sign));
7444 return (set_primary_common(osroot, sign));
7500 set_primary(char *osroot, char *osdev, char *sign, char *fstype)
7508 ret = set_primary_ufs(osroot, sign);
7625 set_signature(char *osroot, char *osdev, char *sign, char *fstype)
7631 osroot, osdev, sign, fstype));
7633 ret = set_backup(osroot, osdev, sign, fstype);
7638 sign, osroot, osdev);
7642 ret = set_primary(osroot, osdev, sign, fstype);
7650 sign, osroot, osdev);
7657 get_grubsign(char *osroot, char *osdev)
7667 BAM_DPRINTF(("%s: entered. args: %s %s\n", fcn, osroot, osdev));
7668 fstype = get_fstype(osroot);
7671 bam_error(_("failed to get fstype for %s\n"), osroot);
7675 sign = find_existing_sign(osroot, osdev, fstype);
7679 fcn, osroot, osdev));
7690 ret = set_signature(osroot, osdev, sign, fstype);
8266 is_bootdisk(char *osroot, char *physical)
8273 assert(osroot);
8276 BAM_DPRINTF(("%s: entered. args: %s %s\n", fcn, osroot, physical));
8285 * The osroot is immaterial as well - it is only used to
8289 grubroot = get_grubroot(osroot, physical, NULL);
8311 menu_on_bootdisk(char *osroot, char *menu_root)
8320 BAM_DPRINTF(("%s: entered. args: %s %s\n", fcn, osroot, menu_root));
8342 if (is_bootdisk(osroot, physarray[i])) {
8717 root_optional(char *osroot, char *menu_root)
8727 BAM_DPRINTF(("%s: entered. args: %s %s\n", fcn, osroot, menu_root));
8730 * For all filesystems except ZFS, a straight compare of osroot
8733 * menu_root and osroot are always different
8735 ret1 = is_zfs(osroot);
8740 fcn, osroot, menu_root));
8741 root_opt = (strcmp(osroot, menu_root) == 0);
8745 ospecial = get_special(osroot);
8748 bam_error(_("failed to get special file for osroot: %s\n"),
8749 osroot);
8752 BAM_DPRINTF(("%s: ospecial=%s for osroot=%s\n", fcn, ospecial, osroot));
8768 BAM_DPRINTF(("%s: FIXED ospecial=%s for osroot=%s\n",
8769 fcn, ospecial, osroot));
8796 char osroot[PATH_MAX];
8812 (void) strlcpy(osroot, bam_root, sizeof (osroot));
8814 title = get_title(osroot);
8817 grubsign = get_grubsign(osroot, osdev);
8821 osroot, osdev);
8830 grubroot = get_grubroot(osroot, osdev, menu_root);
8833 BAM_DPRINTF(("%s: get_grubroot success. osroot=%s, osdev=%s, "
8834 "menu_root=%s\n", fcn, osroot, osdev, menu_root));
8836 BAM_DPRINTF(("%s: get_grubroot failed. osroot=%s, osdev=%s, "
8837 "menu_root=%s\n", fcn, osroot, osdev, menu_root));
8847 root_optional(osroot, menu_root));
8855 root_optional(osroot, menu_root));
8862 root_optional(osroot, menu_root));
8873 osroot, FAILSAFE_ARCHIVE_32);
8875 osroot, FAILSAFE_ARCHIVE_64);
8886 (void) snprintf(failsafe, sizeof (failsafe), "%s%s", osroot,
8889 osroot, DIRECT_BOOT_FAILSAFE_64);
8895 osroot, MULTI_BOOT_FAILSAFE);
8903 root_optional(osroot, menu_root));
8990 * so osroot == / always.