With LOADER_MBR_SUPPORT defined and LOADER_GPT_SUPPORT undefined we would

never call disk_openmbr().

Submitted by:	avg
MFC after:	3 days
This commit is contained in:
pjd 2011-10-20 15:46:54 +00:00
parent 57635fa52e
commit 6eda6b7b3a

View File

@ -776,10 +776,11 @@ disk_open(struct disk_devdesc *dev)
#ifdef LOADER_GPT_SUPPORT
rc = disk_opengpt(dev);
if (rc == 0)
return (0);
#endif
#ifdef LOADER_MBR_SUPPORT
if (rc)
rc = disk_openmbr(dev);
rc = disk_openmbr(dev);
#endif
return (rc);