[Bug 1245154] [NEW] grub-efi grub.cfg generated with incorrect commands, linux and initrd, instead of linuxefi and initrdefi

David Ball david at daball.me
Sun Oct 27 10:30:37 UTC 2013


Public bug reported:

grub.cfg is generated with incorrect commands, linux and initrd, instead
of linuxefi and initrdefi. This affects both the install .iso for the
latest Ubuntu 13.10 and the installed system of the latest Ubuntu 13.10.

Simple Workaround:

You can hand-edit the commands in grub to boot the target system. Once
inside, then you can edit /boot/grub/grub.cfg to change all linux and
initrd commands to linuxefi and initrdefi, respectively. This will have
to be updated each time the grub.cfg file is regenerated, i.e., whenever
new kernels are updated.

Configuration Patch (Proposed Fix, Untested):

Then to ensure grub.cfg is regenerated correctly, edit
/etc/grub.d/10_linux so that

line 166 says linuxefi instead of linux

and

line 182 says initrdefi instead of initrd

But line 182 probably needs to be updated to include encapsulating code
that tests for efi just like on lines 164-172 via an:

if test -d /sys/firmware/efi && test -e "${linux}.efi.signed"; then
(...use initrdefi) else (...use initrd) ... fi.

Thanks!
David

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: grub-efi (not installed)
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
Uname: Linux 3.11.0-12-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: amd64
Date: Sun Oct 27 06:13:32 2013
InstallationDate: Installed on 2013-10-27 (0 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
MarkForUpload: True
SourcePackage: grub2
UpgradeStatus: No upgrade log present (probably fresh install)

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


** Tags: amd64 apport-bug efi grub-efi grub2 saucy uefi

** Description changed:

  grub.cfg is generated with incorrect commands, linux and initrd, instead
  of linuxefi and initrdefi. This affects both the install .iso for the
  latest Ubuntu 13.10 and the installed system of the latest Ubuntu 13.10.
  
  Simple Workaround:
  
  You can hand-edit the commands in grub to boot the target system. Once
  inside, then you can edit /boot/grub/grub.cfg to change all linux and
- initrd commands to linuxefi and initrd, respectively. This will have to
- be updated each time the grub.cfg file is regenerated, i.e., whenever
+ initrd commands to linuxefi and initrdefi, respectively. This will have
+ to be updated each time the grub.cfg file is regenerated, i.e., whenever
  new kernels are updated.
  
  Configuration Patch (Proposed Fix, Untested):
  
  Then to ensure grub.cfg is regenerated correctly, edit
  /etc/grub.d/10_linux so that
  
  line 166 says linuxefi instead of linux
  
  and
  
  line 182 says initrdefi instead of initrd
  
  But line 182 probably needs to be updated to include encapsulating code
  that tests for efi just like on lines 164-172 via an:
  
  if test -d /sys/firmware/efi && test -e "${linux}.efi.signed"; then
  (...use initrdefi) else (...use initrd) ... fi.
  
  Thanks!
  David
  
  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: grub-efi (not installed)
  ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
  Uname: Linux 3.11.0-12-generic x86_64
  ApportVersion: 2.12.5-0ubuntu2.1
  Architecture: amd64
  Date: Sun Oct 27 06:13:32 2013
  InstallationDate: Installed on 2013-10-27 (0 days ago)
  InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
  MarkForUpload: True
  SourcePackage: grub2
  UpgradeStatus: No upgrade log present (probably fresh install)

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

Title:
  grub-efi grub.cfg generated with incorrect commands, linux and initrd,
  instead of linuxefi and initrdefi

Status in “grub2” package in Ubuntu:
  New

Bug description:
  grub.cfg is generated with incorrect commands, linux and initrd,
  instead of linuxefi and initrdefi. This affects both the install .iso
  for the latest Ubuntu 13.10 and the installed system of the latest
  Ubuntu 13.10.

  Simple Workaround:

  You can hand-edit the commands in grub to boot the target system. Once
  inside, then you can edit /boot/grub/grub.cfg to change all linux and
  initrd commands to linuxefi and initrdefi, respectively. This will
  have to be updated each time the grub.cfg file is regenerated, i.e.,
  whenever new kernels are updated.

  Configuration Patch (Proposed Fix, Untested):

  Then to ensure grub.cfg is regenerated correctly, edit
  /etc/grub.d/10_linux so that

  line 166 says linuxefi instead of linux

  and

  line 182 says initrdefi instead of initrd

  But line 182 probably needs to be updated to include encapsulating
  code that tests for efi just like on lines 164-172 via an:

  if test -d /sys/firmware/efi && test -e "${linux}.efi.signed"; then
  (...use initrdefi) else (...use initrd) ... fi.

  Thanks!
  David

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: grub-efi (not installed)
  ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
  Uname: Linux 3.11.0-12-generic x86_64
  ApportVersion: 2.12.5-0ubuntu2.1
  Architecture: amd64
  Date: Sun Oct 27 06:13:32 2013
  InstallationDate: Installed on 2013-10-27 (0 days ago)
  InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
  MarkForUpload: True
  SourcePackage: grub2
  UpgradeStatus: No upgrade log present (probably fresh install)

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



More information about the foundations-bugs mailing list