Bug#586621: grub-pc bug #586621: workaround
Julien Plissonneau Duquène
exp-end-2010-07-f072e4ef at aqiii.org
Tue Jun 22 03:37:26 UTC 2010
Corruption happens in
util/i386/pc/grub-setup.c line 320
strcpy (prefix, new_prefix);
where prefix is a pointer to somewhere in core_img in memory that will not
be written back to disk but will be later compared to a tmp_img read
through grub fs functions.
This is apparently work in progress and I do not know where this is going,
so no patch.
Instead here is an UNTESTED workaround to manually fix core.img (replace
msdos2 with your own partition number):
# grub-install --grub-setup=/bin/true '(hd0,msdos2)'
# echo -en '(,msdos2)/boot/grub' | dd of=/boot/grub/core.img bs=1 seek=540
conv=notrunc
# grub-setup --verbose --force /dev/sda2
It installs, not sure it boots though.
--
Julien Plissonneau Duquène
More information about the Pkg-grub-devel
mailing list