<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11503</bug_id>
          
          <creation_ts>2017-05-11 22:37:18 +0000</creation_ts>
          <short_desc>iso image not booting in EFI mode</short_desc>
          <delta_ts>2017-06-27 00:11:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>Installation</product>
          <component>Installation</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="California Sullivan">california.l.sullivan</reporter>
          <assigned_to name="California Sullivan">california.l.sullivan</assigned_to>
          <cc>kevin.tian</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>73221</commentid>
    <comment_count>0</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2017-05-11 22:37:18 +0000</bug_when>
    <thetext>Since we&apos;re in EFI mode it falls back to the bootloader specified by EFI_PROVIDER. With systemd-boot, we get the prompt &quot;Reboot into firmware interface&quot; and nothing else. With grub-efi, we get the grub command line interface with no boot targets.

Looking at the secondary EFI partition used in EFI mode, it looks like there is no bootloader configuration added:
  [clsulliv@clsulliv clsulliv]$ ls mnt2/
  EFI  initrd  startup.nsh  vmlinuz

Compared to the primary partition used in legacy mode:
  [clsulliv@clsulliv clsulliv]$ ls mnt/
  EFI  efi.img  initrd  isolinux  loader  rmc.db  rootfs.img  startup.nsh  vmlinuz

Copying the loader directory from the primary partition into the secondary partition, I was able to boot in EFI mode.

An easy way to reproduce is by adding meta-intel to your bblayers, setting MACHINE to intel-corei7-64, building core-image-minimal, then run the following:
  runqemu core-image-minimal intel-corei7-64 iso ovmf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73422</commentid>
    <comment_count>1</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2017-05-22 19:50:18 +0000</bug_when>
    <thetext>Patch sent for the systemd-boot side.

After more investigation, grub might be broken in a different way, as grub.cfg already exists in the ISO&apos;s secondary partition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74357</commentid>
    <comment_count>2</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2017-06-19 23:29:59 +0000</bug_when>
    <thetext>Patch for systemd-boot merged to master. Awaiting backport to pyro now.

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=1431210bb0f76743a631967cead87a6f1a09d070

Going to open a new bug specifically for grub, as that one appears to be a different issue that will take more investigation.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>