[Bug 1311247] Re: error: malformed file, press any key to continue
Søren Løvborg
1311247 at bugs.launchpad.net
Thu May 8 18:55:25 UTC 2014
So, this appears to be caused by a well-intentioned sanity check in Grub
that sees an error where there's none when checking grubenv files
spanning multiple "blocks".
In checking that blocks don't overlap, the code has an if-statement that
appears to be accidentally negated ("if (s2 > s1)", should be "if (s1 >
s2)"), causing Grub to *always* report an error *unless* all blocks
overlap. Offending commit appears to be cb72aa1.
I can only assume that the only reason this hasn't been caught earlier
is that the grubenv file most commonly only consists of one Grub
"block"?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1311247
Title:
error: malformed file, press any key to continue
Status in “grub2” package in Ubuntu:
Confirmed
Bug description:
I have just upgraded from 12.04 to 14.04
Since the upgrade, when I boot up, the process stops and the normal
grub screen is replaced after a short while by a message saying
"error: malformed file, press any key to continue"
Pressing a key allows booting to continue.
Someone else who experienced this found that the problem went away
after having re-installed grub. I tried this but this did not resolve
the problem for me.
synaptic reports the grub package as 2.02~beta2-9
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1311247/+subscriptions
More information about the foundations-bugs
mailing list