Server Installer fails at 'grub install dummy' in EFI mode

Bug #1054323 reported by Kent Baxley on 2012-09-21
This bug affects 7 people
Affects Status Importance Assigned to Milestone
grub-installer (Ubuntu)
Colin Watson
Colin Watson

Bug Description

Release: Ubuntu 12.10 Server amd64 Edition, September 21st daily build

grub-efi-amd64-bin amd64 2.00-5ubuntu3 [746 kB]
grub-efi-amd64 amd64 2.00-5ubuntu3
grub-efi amd64 2.00-5ubuntu3
grub-installer 1.78ubuntu2

The 12.10 server installer crashes at what appears to be the grub-install phase on PowerEdge hardware running in EFI mode. This is seen on both 11G and 12G systems.

Steps to Reproduce:

1) Kick off an installation of 64-bit Ubuntu 12.10 server in EFI mode

2) Follow all the installation steps and prompts.

Actual Results:

At the grub-install phase, the system attempts to install the bootloader, but, fails to do so claiming that "grub install dummy" has failed.

Expected Results:

grub installation completes along with the rest of the server OS.

Non-EFI installations work fine.

Kent Baxley (kentb) wrote :

syslog attached from a recent failure. This was repeatable on PowerEdge T410, M915, R820, and R815 systems.

affects: ubiquity (Ubuntu) → grub-installer (Ubuntu)
Kent Baxley (kentb) wrote :
Brian Murray (brian-murray) wrote :

Here is the full error:

Sep 21 15:29:52 grub-installer: info: Installing grub on 'dummy'
Sep 21 15:29:52 grub-installer: info: grub-install does not support --no-floppy
Sep 21 15:29:52 grub-installer: info: Running chroot /target grub-install --force
Sep 21 15:29:53 grub-installer: source_dir doesn't exist. Please specify --target or --directory
Sep 21 15:29:53 grub-installer: error: Running 'grub-install --force failed.

tags: added: quantal
Changed in grub-installer (Ubuntu):
importance: Undecided → High

I'm also able to confirm that the same behavior occurs in a VM (under VMware Workstation) running in UEFI mode, so the behavior is not limited to PowerEdge. I can manually install grub by switching to the command line, but the installer will not find where to install grub.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub-installer (Ubuntu):
status: New → Confirmed

For reference, here's my work-around. After I get the error, I switch to vt2. I run:

mount -o bind /sys /target/sys
chroot /target bash
grub-install /dev/sda

Then I select the option to continue without installing a bootloader. The installed system comes up fine.

Kent Baxley (kentb) on 2012-09-24
summary: - Installer fails at 'grub install dummy' on PowerEdge Hardware in EFI
- mode
+ Installer fails at 'grub install dummy' in EFI mode
Kent Baxley (kentb) on 2012-09-24
summary: - Installer fails at 'grub install dummy' in EFI mode
+ Server Installer fails at 'grub install dummy' in EFI mode
Colin Watson (cjwatson) wrote :

Looks like a regression in 1.78ubuntu1. /sys is no longer bind-mounted.

Changed in grub-installer (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
status: Confirmed → In Progress
Colin Watson (cjwatson) wrote :

Ah. Actually, the bug was always (for some value of ...) present in grub-installer, but a change in GRUB 2.00 triggered it.

Colin Watson (cjwatson) on 2012-09-24
Changed in grub-installer (Ubuntu Quantal):
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grub-installer - 1.78ubuntu3

grub-installer (1.78ubuntu3) quantal; urgency=low

  * Fix incorrect test for whether to bind-mount /sys (LP: #1054323).
 -- Colin Watson <email address hidden> Mon, 24 Sep 2012 21:37:10 +0100

Changed in grub-installer (Ubuntu Quantal):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments