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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1311247

Title:
  error: malformed file, press any key to continue

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1311247/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to