Bug#586621: grub-pc bug #586621: test patch

cep cep at cepcasa.info
Tue Jun 22 06:42:45 UTC 2010


Le 22/06/2010 05:37, Julien Plissonneau Duquène a écrit :
>
> 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.
>

# 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

are ok and it boots.







More information about the Pkg-grub-devel mailing list