Hi All,
There is a bug report conserning grub-0.97 and reiser4 support
in grub:
https://savannah.gnu.org/bugs/?func=detailitem&item_id=14874
I have tested it and found that the problem may occur with other
filesystems as well.
After some debugging I found that the following patch solves
the problem for me. Please check it and consider to apply.
Thanks.
--
Vitaly
diff -rup grub-0.97-1/stage2/builtins.c grub-0.97-reiser4/stage2/builtins.c
--- grub-0.97-1/stage2/builtins.c 2005-08-05 22:48:24.000000000 +0400
+++ grub-0.97-reiser4/stage2/builtins.c 2006-03-21 13:00:03.447384400 +0300
@@ -3830,15 +3830,15 @@ setup_func (char *arg, int flags)
{
char tmp[16];
grub_sprintf (tmp, ",%d", (partition >> 16) & 0xFF);
- grub_strncat (device, tmp, 256);
+ grub_strncat (device, tmp, 16);
}
if ((partition & 0x00FF00) != 0x00FF00)
{
char tmp[16];
grub_sprintf (tmp, ",%c", 'a' + ((partition >> 8) & 0xFF));
- grub_strncat (device, tmp, 256);
+ grub_strncat (device, tmp, 16);
}
- grub_strncat (device, ")", 256);
+ grub_strncat (device, ")", 16);
}
int embed_stage1_5 (char *stage1_5, int drive, int partition)
_______________________________________________
Bug-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-grub