Recieved the following error during the upgrade of Ubuntu 12.04 to 12.10. Obviously I don't want to reboot as grub isn't installed and boot will fail.
Then when trying to install grub-efi-amd64 manually, the following:
Could not install 'grub-efi-amd64'
The upgrade will continue but the 'grub-efi-amd64' package may not be in a working state. Please consider submitting a bug report about it.
Subprocess install post-installation script returned error exit status 1
Boot-repair info script output (before running repair): http://paste.ubuntu.com/1418355/
:/boot$ sudo apt-get install grub-efi-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
grub-efi-amd64 is already the newest version.
grub-efi-amd64 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up grub-efi-amd64 (2.00-7ubuntu11) ...
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/isw_ddhbgcdgch_Borg_storage1. Check your device.map.
/boot/efi doesn't look like an EFI partition.
Path `/boot/grub' is not readable by GRUB on boot. Installation is impossible. Aborting.
dpkg: error processing grub-efi-amd64 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of grub-efi:
grub-efi depends on grub-efi-amd64 (= 2.00-7ubuntu11); however:
Package grub-efi-amd64 is not configured yet.
dpkg: error processing grub-efi (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Boot-repair fails as grub-efi-amd64 not installed
Obviously I don't want to restart the computer as it won't boot if grub isn't installed.
EDIT: Ok, didn't have a choice in restarting as the power went out. As suspected computer wouldn't boot on restarting, booted from Ubuntu disk and ran boot-repair to get a booting system back. This isn't really a fix though as it will only happen again next time grub is updated.