View | Details | Raw Unified | Return to bug 229770
Collapse All | Expand All

(-)/usr/src/stand/efi/libefi/devicename.c (-1 / +1 lines)
Lines 59-65 Link Here
59
	 * use the current device instead.
59
	 * use the current device instead.
60
	 */
60
	 */
61
	if (devspec == NULL || *devspec == '/' || !strchr(devspec, ':')) {
61
	if (devspec == NULL || *devspec == '/' || !strchr(devspec, ':')) {
62
		rv = efi_parsedev(dev, getenv("currdev"), NULL);
62
		rv = efi_parsedev(dev, getenv("rootdev") ? getenv("rootdev") : getenv("currdev"), NULL);
63
		if (rv == 0 && path != NULL)
63
		if (rv == 0 && path != NULL)
64
			*path = devspec;
64
			*path = devspec;
65
		return (rv);
65
		return (rv);

Return to bug 229770