diff options
author | Eric Taylor <Eric.Taylor@Sun.COM> | 2009-07-30 09:40:30 -0600 |
---|---|---|
committer | Eric Taylor <Eric.Taylor@Sun.COM> | 2009-07-30 09:40:30 -0600 |
commit | 99114ab6663dd12ed5ff3c0da58de645e7ebaff4 (patch) | |
tree | 28746949cabef3349c774fee0e8922e06332d26c /usr/src/grub | |
parent | 8780f632c8794e526157dc18c87834b2cc4f6592 (diff) | |
download | illumos-joyent-99114ab6663dd12ed5ff3c0da58de645e7ebaff4.tar.gz |
6866143 Cannot boot Nevada 120 x86 from physical DVD media
Diffstat (limited to 'usr/src/grub')
-rw-r--r-- | usr/src/grub/grub-0.97/stage2/disk_io.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/src/grub/grub-0.97/stage2/disk_io.c b/usr/src/grub/grub-0.97/stage2/disk_io.c index 5e767dc747..bcb37febba 100644 --- a/usr/src/grub/grub-0.97/stage2/disk_io.c +++ b/usr/src/grub/grub-0.97/stage2/disk_io.c @@ -431,8 +431,15 @@ attempt_mount (void) { #ifndef STAGE1_5 for (fsys_type = 0; fsys_type < NUM_FSYS; fsys_type++) + { + /* + * (re)set errnum to 0 in order to clear any state that may have + * been left from a previous mount (or other) routine. + */ + errnum = 0; if ((fsys_table[fsys_type].mount_func) ()) break; + } if (fsys_type == NUM_FSYS && errnum == ERR_NONE) errnum = ERR_FSYS_MOUNT; |