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





--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to