[Bug 1311247] Re: [Grubenv] error: malformed file, press any key to continue

dino99 1311247 at bugs.launchpad.net
Thu May 29 07:14:20 UTC 2014


AS per /etc/grub.d/00_header, line 38

if [ "x${GRUB_DEFAULT}" = "x" ] ; then GRUB_DEFAULT=0 ; fi

so trying with a new grubenv made with:

oem at dev32:~$ sudo su
[sudo] password for oem: 
root at dev32:/home/oem# cd /boot/grub
root at dev32:/boot/grub# rm grubenv
root at dev32:/boot/grub# grub-editenv grubenv create
root at dev32:/boot/grub# grub-editenv grubenv set default="x"
root at dev32:/boot/grub# grub-editenv grubenv list

the returned value is: default=x , so 00_header rule should now
understand 'GRUB_DEFAULT=0' as it might and stop grubenv be rewriten
with garbage. hm, will see if its true or not.

-- 
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:
  [Grubenv] 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