Page 1 of 1

[Unreproducible] grub2-common and other grub packages

Posted: Wed Mar 12, 2014 12:58 pm
by GekkoP
A dist-upgrade today report me this one:

Code: Select all

#741342 - /usr/sbin/update-grub: update-grub writes root=UUID= to grub.cfg for LVM2, renders machine unbootable
It scared the hell out of me (due to my lack of knowledge about LVM2) so I stopped the dist-upgrade.

Re: grub2-common [critical]

Posted: Wed Mar 12, 2014 2:04 pm
by ivanovnegro
I would say it affects only LVM installations but I could be wrong. Though there seems to be also a good workaround with:
Updating /etc/default/grub helped for me:

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
GRUB_DISABLE_LINUX_UUID="true"

(and re-running update-grub2)
Edit: There was a similar bug in the past and it was indeed an LVM issue.

Re: grub2-common [critical]

Posted: Wed Mar 12, 2014 2:53 pm
by GekkoP
Thanks for the clarification, ivan. Just dist-upgraded, rebooted and here I am. Everything's fine, without the need for that fix. Though it changed my grub background image, but I can fix that.

Re: grub2-common [critical]

Posted: Wed Mar 12, 2014 6:26 pm
by ivanovnegro
Great.
Yeah, the fix is only if it breaks.

Mark it fixed please. ;)

grub rescue> grub_term_highlight_menu not found

Posted: Sun Mar 16, 2014 2:03 am
by pottzie
Ran a DU on a 64 bit system and grub borked. Gives the error shown in the title, looks like that's just a line somewhere in grub that should say something like color_highlight=black/white, but where it goes or how to edit from the grub rescue > prompt hasn't shown in any search I've done. I can chroot into sda2 from a rescue cd.

Re: grub rescue> grub_term_highlight_menu not found

Posted: Sun Mar 16, 2014 2:13 am
by machinebacon
there was an upgrade warning posted here a few days ago, related to lvm2 and grub.

from another system, rebuild the grub. if you have a bbq rescue stick, try with 'sudo grubrepair'

Re: grub rescue> grub_term_highlight_menu not found

Posted: Sun Mar 16, 2014 2:40 am
by pottzie
I'm getting an error saying "Please enter device you want to install grub to (MBR). GTK-Message: Failed to load module "canberra-gtk-module"

I'm using an Ubuntu 12.10 DVD because, well, it was what I had. For some reason every BBQ 64 bit cd I have refused to open, even though I've installed from all of them before. Poo happens.

EDIT: Looks like maybe something screwed up with Ubuntu, the stuff I'm seeing about this bug is from Ubuntu, circa 2011. I also have a Fedora 64 bit DVD, may try it with that.

OK, just tried on Fedora, same error, gives me a blank "page" instead of the sda 'list' of partitions that came up in Ubuntu. I also tried grubrepair /dev/sda2 and that didn't work. Stoopid computers.

Guess it might help to show the output:

Code: Select all

root@localhost:/# grubrepair
Please enter the device you wish to install grub to (MBR): /usr/bin/grubrepair: line 16: blkid: command not found
Gtk-Message: Failed to load module "pk-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"

Installed libcanberra-gtk3-module, still didn't work. Just figured that could be because I haven't loaded the modual, but modprobe doesn't work because I don't have permission in chroot, evidently.

Re: grub rescue> grub_term_highlight_menu not found

Posted: Sun Mar 16, 2014 12:29 pm
by machinebacon
unsure abt. these, its just a bash script (not gtk),anyway this won't work outside bbq. try
sudo grub-install /dev/sda2 (or your device) and then sudo update-grub.

Re: grub rescue> grub_term_highlight_menu not found

Posted: Sun Mar 16, 2014 2:23 pm
by gurtid
Do yourself a favour and create another bbq cd or usb. I fixed this issue in about 1 minute running the bbq tools from a live bakewell usb when I got your intial problem a few days ago.

Re: [RESOLVED] grub2-common [critical]

Posted: Sun Mar 16, 2014 5:36 pm
by ivanovnegro
I will reopen this bug and merge the newest grub errors with it. My fault for suggesting closing it down so quickly.

It seems on some machines the newest grub in sid will fuck up your system. We think it relates only to LVM but we could be wrong.

So, do not upgrade if you are not sure and wait the patch that will come to fix the problem or put grub2-common and grub-pc on hold!

Re: [REOPENED] grub2-common [critical]

Posted: Mon Mar 17, 2014 5:04 am
by machinebacon
I would also suggest to put the crap on hold, though interestingly on my no-other-OS-just-Linux computers the new GRUB works well, but I don't use LVM and recently also no systemd (if this maybe plays a role). Thanks Ivan for the reopening and merging, would have been too sweet if this shit solves itself easily.

Re: [REOPENED] grub2-common [critical]

Posted: Thu Mar 20, 2014 9:07 pm
by ivanovnegro
Just in case you see the patch coming from Siduction to solve the Grub issue, maybe you still want to wait rather than do a d-u.

Tim speaks:

http://forum.siduction.org/index.php?to ... 8#msg36448

IMO, stay on hold.

Edit: Of course, by now it is not only grub2-common, it is the whole Grub crap but I think you know that already. When you hold grub2-common and grub-pc it should automatically prevent other Grub packages from upgrading.

Stay safe. ;)

Re: [REOPENED] grub2-common and other grub packages [critica

Posted: Fri Mar 21, 2014 10:45 am
by xaos52
I got caught by this, but there is an easy work-around:
While on the grub menu, use the grub 'E' (editor) feature to replace

Code: Select all

root=UUID=...
by

Code: Select all

root=/dev/mapper/VG10-sid
replacing VG10-sid with your logical volume name.
Press F10 to boot.

After booting edit /boot/grub/grub.cfg
and apply the same modification.

Of course you will have to do that every time after running update-grub, until the issue gets solved.

Re: [REOPENED] grub2-common and other grub packages [critica

Posted: Sat Mar 22, 2014 12:03 am
by chilli
Something caught my eye on a followup to bug #741342 (post #31)regarding the usbhid module not being found (which sounds like it could cause the scenario in #741464).

(741342)
https://bugs.debian.org/cgi-bin/bugrepo ... =741342#31

(741464)
https://bugs.debian.org/cgi-bin/bugrepo ... bug=741464

(edit - probably would have been good to include the actual links in the post. :p)

Re: [REOPENED] grub2-common and other grub packages [critica

Posted: Mon Apr 07, 2014 5:46 am
by ivanovnegro
This problem still persists, especially because of grub-pc-bin. I still recommend to stay on the older Grub packages if you are not able to fix it by yourself.

Reference

Re: [REOPENED] grub2-common and other grub packages [critica

Posted: Sun Oct 19, 2014 4:50 pm
by ivanovnegro
Closing this.