--- grub-1.97~beta4/kern/fs.c 2009-07-16 18:14:09.000000000 -0400 +++ grub-1.97~beta4-fixed/kern/fs.c 2009-10-28 22:36:49.000000000 -0400 @@ -65,12 +65,14 @@ grub_fs_probe (grub_device_t device) { grub_fs_t p; + int found_file; auto int dummy_func (const char *filename, const struct grub_dirhook_info *info); int dummy_func (const char *filename __attribute__ ((unused)), const struct grub_dirhook_info *info __attribute__ ((unused))) { + found_file = 1; return 1; } @@ -82,8 +84,10 @@ for (p = grub_fs_list; p; p = p->next) { grub_dprintf ("fs", "Detecting %s...\n", p->name); + + found_file = 0; (p->dir) (device, "/", dummy_func); - if (grub_errno == GRUB_ERR_NONE) + if (grub_errno == GRUB_ERR_NONE && found_file) return p; grub_error_push ();