Public bug reported:

Binary package hint: grub2

This is a bug in the grub-install included in grub-efi-amd64

Running it gives:

$ grub-install  
/usr/sbin/grub-install: 391: : Permission denied
/usr/sbin/grub-install: 391: : Permission denied
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/grub-install: 636: --device-map=/dev/stdout: not found
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/grub-install      2011-01-11 16:58:32.000000000 -0700
@@ -38,7 +38,6 @@
 
 grub_setup="${sbindir}/`echo grub-setup | sed ${transform}`"
 grub_mkimage="${bindir}/`echo grub-mkimage | sed ${transform}`"
+grub_mkdevicemap="${sbindir}/`echo grub-mkdevicemap | sed ${transform}`"
 grub_probe="${sbindir}/`echo grub-probe | sed ${transform}`"
 grub_editenv="${bindir}/`echo grub-editenv | sed ${transform}`"
 grub_mkrelpath="${bindir}/`echo grub-mkrelpath | sed ${transform}`"

Works fine after:
$ grub-install 
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0004,0000,0001,0002,0003
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}"/efiemu??.o; do

(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-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
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

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug maverick

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/702707

Title:
  grub-install fails to run due to missing grub_mkdevicemap

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to