* Proposal for fixing bootinfoscript when grub v2.00 sits on the MBR
@ 2014-02-15 14:48 Arbiel (gmx)
2014-02-15 15:41 ` Andrey Borzenkov
0 siblings, 1 reply; 2+ messages in thread
From: Arbiel (gmx) @ 2014-02-15 14:48 UTC (permalink / raw)
To: meierfra; +Cc: The development of GNU GRUB, yannubuntu@gmail.com
Hi
Apparently, you are in charge of maintaining bootinfoscript.
It turns out that the script does not correctly discriminate grub2's
versions 1.99 and 2.00.
To understand why, I've studied the release available for download at
http://sourceforge.net/p/bootinfoscript/code/ci/master/tree/
and used by "boot-repair", a boot repairing tool written by YannUbuntu.
I found out that the mistake comes from the fact that bootinfoscript
looks in core.img for a 6-byte value of "d1 e9 df fe ff ff" and, when
found, looks at the following two bytes for either "66 90" or "8d b6" to
deduce that grub2's version is 2.00. For any other value, it deduces the
version to be 1.99, whereas the latter should be deduced only from a "00
00" value, if the comments inside the script's code are reliable.
I've installed grub2 v2.00 from a Ubuntu distribution and it happens
that the two bytes following the "d1 e9 df fe ff ff" token hold a third
value, namely "8d 76". I obviously do not know whether this third value
is a "good" value to be considered as a grub v2.00 token or if the
search for "d1 e9 df fe ff ff" should be continued until it reaches a
"good" "00 00", "66 90" or "8d b6" value into the two following bytes.
Could you please investigate this issue, and possibly update
bootinfoscript ?
Thank's in advance.
Arbiel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Proposal for fixing bootinfoscript when grub v2.00 sits on the MBR
2014-02-15 14:48 Proposal for fixing bootinfoscript when grub v2.00 sits on the MBR Arbiel (gmx)
@ 2014-02-15 15:41 ` Andrey Borzenkov
0 siblings, 0 replies; 2+ messages in thread
From: Andrey Borzenkov @ 2014-02-15 15:41 UTC (permalink / raw)
To: The development of GNU GRUB
Cc: arbiel.perlacremaz, yannubuntu@gmail.com, meierfra
В Sat, 15 Feb 2014 15:48:03 +0100
"Arbiel (gmx)" <arbiel.perlacremaz@gmx.fr> пишет:
> Hi
>
> Apparently, you are in charge of maintaining bootinfoscript.
>
> It turns out that the script does not correctly discriminate grub2's
> versions 1.99 and 2.00.
>
Botinfoscript is unrelated to grub development.
You can find version with my fixes submitted upstream but never applied
at https://github.com/arvidjaar/bootinfoscript
It should correctly parse current master as well as offer some sugar on
top (like parsing embedded prefix or config). I may add listing of
modules as well.
> To understand why, I've studied the release available for download at
> http://sourceforge.net/p/bootinfoscript/code/ci/master/tree/
> and used by "boot-repair", a boot repairing tool written by YannUbuntu.
>
> I found out that the mistake comes from the fact that bootinfoscript
> looks in core.img for a 6-byte value of "d1 e9 df fe ff ff" and, when
> found, looks at the following two bytes for either "66 90" or "8d b6" to
> deduce that grub2's version is 2.00. For any other value, it deduces the
> version to be 1.99, whereas the latter should be deduced only from a "00
> 00" value, if the comments inside the script's code are reliable.
>
> I've installed grub2 v2.00 from a Ubuntu distribution and it happens
> that the two bytes following the "d1 e9 df fe ff ff" token hold a third
> value, namely "8d 76". I obviously do not know whether this third value
> is a "good" value to be considered as a grub v2.00 token or if the
> search for "d1 e9 df fe ff ff" should be continued until it reaches a
> "good" "00 00", "66 90" or "8d b6" value into the two following bytes.
>
> Could you please investigate this issue, and possibly update
> bootinfoscript ?
>
> Thank's in advance.
>
> Arbiel
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-15 15:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-15 14:48 Proposal for fixing bootinfoscript when grub v2.00 sits on the MBR Arbiel (gmx)
2014-02-15 15:41 ` Andrey Borzenkov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.