grub-install fails to run due to missing grub_mkdevicemap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Fix Released
|
High
|
Colin Watson |
Bug Description
Binary package hint: grub2
This is a bug in the grub-install included in grub-efi-amd64
Running it gives:
$ grub-install
/usr/sbin/
/usr/sbin/
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0000,0001,0002,0003
Boot0000* Windows Boot Manager
Boot0001* Hard Drive
Boot0002* Network Card
Boot0003* UEFI: 0.00
/usr/sbin/
Could not open disk : No such file or directory
Installation finished. No error reported.
Notice there is no 'ubuntu' entry in the listing from efibootmgr. Oops.
Easy fix:
--- grub-install 2011-01-13 19:37:55.125032970 -0700
+++ /usr/sbin/
@@ -38,7 +38,6 @@
grub_setup=
grub_mkimage=
+grub_mkdevicem
grub_probe=
grub_editenv=
grub_mkrelpath
Works fine after:
$ grub-install
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0004,0000,
Boot0000* Windows Boot Manager
Boot0001* Hard Drive
Boot0002* Network Card
Boot0003* UEFI: 0.00
Boot0004* ubuntu
Installation finished. No error reported.
Also, this bit fails:
for file in "${grubdir}"/*.mod "${grubdir}"/*.lua "${grubdir}"/*.lst "${grubdir}"/*.img "${grubdir}
(and others with *.lua) because there is no *.lua files in the grubdir, or included with the package. Probably should use
for file in `find ${grbudir} -name "*.mod" -or -name "*.lua" -or -name "*.lst" -or -name "*.img" [...]`
or so.
I'm running the natty version on maverick because the maverick version corrupts the initrd with my BIOS ...
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: grub-efi-amd64 1.99~20110111-
ProcVersionSign
Uname: Linux 2.6.35-22-generic x86_64
Architecture: amd64
Date: Thu Jan 13 19:48:11 2011
ProcEnviron:
PATH=(custom, no user)
LANG=C
SHELL=/bin/bash
SourcePackage: grub2
Thanks! Fixed for my next upload.