From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com [192.94.38.131]) by mail.openembedded.org (Postfix) with ESMTP id 37C6B79E7B for ; Mon, 5 Nov 2018 07:34:21 +0000 (UTC) Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-02.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1gJZOu-0004uZ-T8 from Arsalan_Awan@mentor.com ; Sun, 04 Nov 2018 23:34:20 -0800 Received: from SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) by svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Mon, 5 Nov 2018 07:34:17 +0000 Received: from SVR-IES-MBX-03.mgc.mentorg.com ([fe80::1072:fb6e:87f1:ed17]) by SVR-IES-MBX-03.mgc.mentorg.com ([fe80::1072:fb6e:87f1:ed17%22]) with mapi id 15.00.1320.000; Mon, 5 Nov 2018 07:34:17 +0000 From: "Awan, Arsalan" To: akuster808 , "openembedded-core@lists.openembedded.org" Thread-Topic: [OE-core] [sumo][PATCH 1/1] wic/isoimage-isohybrid.py: fix booting from removable media Thread-Index: AQHUdNlZ0/EsWKHdbkKTyXY3hxfOMw== Date: Mon, 5 Nov 2018 07:34:17 +0000 Message-ID: <1541403256938.5944@mentor.com> References: <6bf54a814e2aaa03e262aa2edd529405d391ee22.1541168618.git.Arsalan_Awan@mentor.com>, In-Reply-To: Accept-Language: en-US, en-IE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [137.202.0.90] MIME-Version: 1.0 Subject: Re: [sumo][PATCH 1/1] wic/isoimage-isohybrid.py: fix booting from removable media X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2018 07:34:21 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Arsalan,=0A= > =0A= > =0A= > On 11/2/18 8:01 AM, Arsalan Awan wrote:=0A= > > From: "Arsalan H. Awan" =0A= > >=0A= > > The EFI bootloader name and path for being able to boot from a=0A= > > removable storage media - such as USB - must be like:=0A= > >=0A= > > /EFI/BOOT/boot.efi=0A= > > /EFI/BOOT/bootx64.efi=0A= > > /EFI/BOOT/bootia32.efi=0A= > > /EFI/BOOT/bootaa64.efi=0A= > >=0A= > > otherwise system will not be able to boot from it.=0A= > =0A= > Is this fixed in Master & Thud ?=0A= > =0A= > - armin=0A= =0A= Yes Armin! It is fixed in Thud and Master.=0A= =0A= -=0A= Arsalan=0A= =0A= > =0A= > >=0A= > > This commit fixes the grub-efi bootloader destination image name=0A= > > accordingly just like efi_populate() function does it in=0A= > > meta/classes/grub-efi.bbclass.=0A= > >=0A= > > Signed-off-by: Arsalan H. Awan =0A= > > ---=0A= > > scripts/lib/wic/plugins/source/isoimage-isohybrid.py | 4 +++-=0A= > > 1 file changed, 3 insertions(+), 1 deletion(-)=0A= > >=0A= > > diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py b/scr= ipts/lib/wic/plugins/source/isoimage-isohybrid.py=0A= > > index d6bd3bf..9a30713 100644=0A= > > --- a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py=0A= > > +++ b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py=0A= > > @@ -329,13 +329,15 @@ class IsoImagePlugin(SourcePlugin):=0A= > >=0A= > > if re.match("x86_64", target_arch):=0A= > > grub_image =3D "grub-efi-bootx64.efi"=0A= > > + grub_image_dst =3D "bootx64.efi"=0A= > > elif re.match('i.86', target_arch):=0A= > > grub_image =3D "grub-efi-bootia32.efi"=0A= > > + grub_image_dst =3D "bootia32.efi"=0A= > > else:=0A= > > raise WicError("grub-efi is incompatible with targ= et %s" %=0A= > > target_arch)=0A= > >=0A= > > - grub_target =3D os.path.join(target_dir, grub_image)= =0A= > > + grub_target =3D os.path.join(target_dir, grub_image_ds= t)=0A= > > if not os.path.isfile(grub_target):=0A= > > grub_src =3D os.path.join(deploy_dir, grub_image)= =0A= > > if not os.path.exists(grub_src):=