[Bug 1937115] Re: Unable to boot/install Impish daily in UEFI boot mode

Springnuts 1937115 at bugs.launchpad.net
Thu Aug 5 17:05:49 UTC 2021


I am subscribing as my boot issue seems similar; I wonder if this is
affecting some other Hairy Hippo users?

My boot-info detail: https://paste.ubuntu.com/p/ZYWPgTJJPG/
My boot-repair info:  https://paste.ubuntu.com/p/YcSFTnxjVZ/

The laptop is an HPP455 G2 with a 1TB SSD partitioned to include a
separate Data partition. Secure boot is disabled. I have installed a
dual boot Windows 10 and Ubuntu 21.04 system and (with some difficulty)
had it working well.

Expected behaviour: On switch on or restart the system boots into the
Ubuntu dual boot screen, allowing user to select Ubuntu or Windows; if
no selection within ten seconds boots into Ubuntu.

Observed behaviour: On switch on or restart the system fails to boot
with the error messages as below; looping through the initial post
screen and into the error message. Selecting "Esc" at the post screen
allows selection of efi boot options; the third of which is "ubuntu" -
this takes me to the dual boot screen after which boot proceeds into the
selected (or default) OS as expected.

On first installing the SDD I installed Windows then Ubuntu. Since the
system did not boot properly I used 'Boot-Repair' Advanced options and
followed the directions to "change the default boot entry of your
Windows bootloader ... boot into Windows then type the following in an
admin command prompt: bcdedit /set {bootmgr} path
\EFI\ubuntu\shimx64.efi . The system then booted normally into the
standard Ubuntu dual boot screen. It has been ok for the past three
months or so.

Today I did a restart and I was unable to boot as normal, however could
enter the EFI boot options screen and select Ubuntu, which then went to
the dual boot screen from where boot is normal into Ubuntu or Windows.

I again used Boot-Repair Advanced options and again followed the
directions to "change the default boot entry of your Windows bootloader
... boot into Windows then type the following in an admin command
prompt: bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi . This did
not sort the problem out.

Full details of error message:

  Failed to open \efi\ubuntu\S - Invalid Parameter

  Failed to load image \efi\ubuntu\S: - Invalid Parameter

  start_image() returned Invalid Parameter

I would be grateful for any advice.

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

Title:
  Unable to boot/install Impish daily in UEFI boot mode

Status in cd-boot-images-amd64 package in Ubuntu:
  Triaged
Status in shim package in Ubuntu:
  In Progress
Status in cd-boot-images-amd64 source package in Focal:
  Confirmed
Status in shim source package in Focal:
  Confirmed
Status in cd-boot-images-amd64 source package in Impish:
  Triaged
Status in shim source package in Impish:
  In Progress

Bug description:
  [Impact]
  Removable media fail to boot on some machines due to garbage in firmware generated boot entries. This is a regression from LP: #1929471 introduced in shim 15.4-0ubuntu7.

  In addition we also cherry-pick
  https://github.com/rhboot/shim/pull/365 to fix a potential buffer
  overflow.

  [Test plan]
  I'm sure someone can test a new daily impish ISO on an affected machine. Verification is not necessary for individual SRU releases.

  We will also do boot of an installed system, and perform the usual
  chainloaded netbooting test, prior to uploading.

  [Regression potential]

  We'll apply three patches for the main issue:

  Patches 1/2 (https://github.com/rhboot/shim/pull/393) add a fallback
  to the default loader (with 2s timeout) if we failed to load any
  specified loader. This ensures we can always boot our default loader,
  and hence installed systems, even if there is garbage around. It also
  adds debugging output for the load option that is being parsed, such
  that people can debug why it failed.

  Patch 3 (https://github.com/rhboot/shim/pull/399) disables parsing
  load options entirely when booting via the removable media path
  (boot*.efi). This means that any system where admins generate boot
  entries like bootx64.efi fwupdx64.efi to load a specific second stage
  will fail to load that second stage and load grubx64.efi instead.

  is this a problem in practice?

  On installed systems, we install \EFI\BOOT\bootx64.efi in addition to
  \EFI\ubuntu\shimx64.efi, and generate boot loader entries for the
  latter. The former will always use the fbx64.efi fallback loader to
  add missing boot loader entries and load grub, hence it doesn't seem
  to support custom options anyway (you'd have to delete fbx64.efi; and
  even then - you still have the shimx64.efi binary).

  On installer media, we do not expect you to specify another second
  stage loader anyway. It's arguably only problematic there, as those
  could be read-only and hence you can't rename the binary to
  shimx64.efi.

  For the overflow, the fix is trivially correct.

  [Original bug report]
  Testing Ubuntu Impish daily ISO= http://cdimage.ubuntu.com/daily-live/20210721/impish-desktop-amd64.iso

  The test machines are:

  1. Dell [ Optiplex] MT 7040 i7-6700 booting in UEFI mode
  2. Dell [ Optiplex] MT 7060, i7-8700 booting in UEFI+secure boot mode

  Boot from USB media fails with the message:

  Failed to open /EFI/boot/? invalid parameter

  No further info available

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cd-boot-images-amd64/+bug/1937115/+subscriptions




More information about the foundations-bugs mailing list