[Bug 978464] Re: Upgrade 10.04 to 12.04 Beta 2 failed, grub issue

Dmitrijs Ledkovs 978464 at bugs.launchpad.net
Tue May 15 16:43:35 UTC 2012


* fix released in development release
* fix uploaded into -proposed (pending approval)
* description updated with details
* ubuntu-sru team subscribed

** Description changed:

- I upgraded a 10.04 to 12.04 Beta 2.
+ [Impact]
+ Any system upgraded from Lucid->Precise is affected, if and only if the user does not opt-in to reinstall grub-pc bootloader during the do-release-upgrade/dist-upgrade nor reinstalls grub-pc into MBR manually before mandatory reboot.
  
- After the compulsory reboot, I ended up stuck on a GRUB shell.
+ The affected system will fail to reboot, and will drop into grub shell
+ requiring manual boot.
  
- GRUB didn't get properly updated
+ [Workaround]
+ Users should follow the warnings about potential incompatibilities, and reinstall grub-pc into MBR/partitions as appropriate. This will update their grub to a supported version. If users still preffers to keep old grub, we provide Development and Stable Fixes.
  
- Screen shot is attached.
+ [Development Fix]
+ In the Development branch, the fix was to use backwards compatible syntax in grub.cfg. Specifically, using ${var} syntax for variable substitution. (NB! the $var syntax was introduced as fully supported after the grub2 1.98 release, that is after lucid)
  
- I know how to pass that problem manually by upgrading grub configuration
- by hand using a LiveCD.. But obviously, for your lambda users it's going
- to be a massive blocker.
+ [Stable Fix]
+ Patch can be found at: https://code.launchpad.net/~dmitrij.ledkov/ubuntu/precise/grub2/fix-978464/+merge/105844
+ 
+ [Test Case]
+ 1) Install/Have already installed: grub-common grub-pc grub-pc-bin grub2-common from lucid (1.98-1ubuntu5)
+ 2) Make sure version of 1.98-1ubuntu5 of grub2 is used as bootloader, e.g. run  `sudo grub-install /dev/sdX  # Example: sudo grub-install /dev/sda'
+ 
+ Note: step 1 & 2 can be accomplished by doing a fresh lucid install in
+ environment which uses grub-pc, e.g. desktop or server images, but not
+ ec2 "cloud" images.
+ 
+ 3) Upgrade grub-common grub-pc grub-pc-bin grub2-common from precise-proposed (1.99-21ubuntu3.1) but do not reinstall grub into MBR. (as part of do-release-upgrade/dist-upgrade select "Yes, continue without reinstalling grub")
+ 4) Reboot
+ 
+ Assert True: reboot succeeds.
+ 
+ To test that bug exists: install grub-common grub-pc grub-pc-bin
+ grub2-common from precise (1.99-21ubuntu3) but dot reinstall grub into
+ MBR. Rebooting should drop into grub recovery console.
+ 
+ [Regression Potential]
+ Regressions are not anticipated, since only variant of valid syntax is changed. Nonetheless users should see https://help.ubuntu.com/community/Grub2 if they are having troubles booting their system.

** Summary changed:

- Upgrade 10.04 to 12.04 Beta 2 failed, grub issue
+ Upgrade 10.04 to 12.04, drops into grub recovery shell upon reboot

** Summary changed:

- Upgrade 10.04 to 12.04, drops into grub recovery shell upon reboot
+ After LTS->LTS (lucid2precise) upgrade, drops into grub recovery shell upon reboot

** Summary changed:

- After LTS->LTS (lucid2precise) upgrade, drops into grub recovery shell upon reboot
+ After LTS->LTS (lucid2precise) upgrade, upon reboot drops into grub recovery shell

** Tags removed: patch

-- 
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/978464

Title:
  After LTS->LTS (lucid2precise) upgrade, upon reboot drops into grub
  recovery shell

Status in “grub2” package in Ubuntu:
  Fix Released
Status in “grub2” source package in Precise:
  Triaged
Status in “grub2” source package in Quantal:
  Fix Released

Bug description:
  [Impact]
  Any system upgraded from Lucid->Precise is affected, if and only if the user does not opt-in to reinstall grub-pc bootloader during the do-release-upgrade/dist-upgrade nor reinstalls grub-pc into MBR manually before mandatory reboot.

  The affected system will fail to reboot, and will drop into grub shell
  requiring manual boot.

  [Workaround]
  Users should follow the warnings about potential incompatibilities, and reinstall grub-pc into MBR/partitions as appropriate. This will update their grub to a supported version. If users still preffers to keep old grub, we provide Development and Stable Fixes.

  [Development Fix]
  In the Development branch, the fix was to use backwards compatible syntax in grub.cfg. Specifically, using ${var} syntax for variable substitution. (NB! the $var syntax was introduced as fully supported after the grub2 1.98 release, that is after lucid)

  [Stable Fix]
  Patch can be found at: https://code.launchpad.net/~dmitrij.ledkov/ubuntu/precise/grub2/fix-978464/+merge/105844

  [Test Case]
  1) Install/Have already installed: grub-common grub-pc grub-pc-bin grub2-common from lucid (1.98-1ubuntu5)
  2) Make sure version of 1.98-1ubuntu5 of grub2 is used as bootloader, e.g. run  `sudo grub-install /dev/sdX  # Example: sudo grub-install /dev/sda'

  Note: step 1 & 2 can be accomplished by doing a fresh lucid install in
  environment which uses grub-pc, e.g. desktop or server images, but not
  ec2 "cloud" images.

  3) Upgrade grub-common grub-pc grub-pc-bin grub2-common from precise-proposed (1.99-21ubuntu3.1) but do not reinstall grub into MBR. (as part of do-release-upgrade/dist-upgrade select "Yes, continue without reinstalling grub")
  4) Reboot

  Assert True: reboot succeeds.

  To test that bug exists: install grub-common grub-pc grub-pc-bin
  grub2-common from precise (1.99-21ubuntu3) but dot reinstall grub into
  MBR. Rebooting should drop into grub recovery console.

  [Regression Potential]
  Regressions are not anticipated, since only variant of valid syntax is changed. Nonetheless users should see https://help.ubuntu.com/community/Grub2 if they are having troubles booting their system.

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




More information about the foundations-bugs mailing list