From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YEanr-0002Be-8t for mharc-grub-devel@gnu.org; Fri, 23 Jan 2015 04:45:23 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEano-0002BK-NN for grub-devel@gnu.org; Fri, 23 Jan 2015 04:45:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEann-0004aL-8A for grub-devel@gnu.org; Fri, 23 Jan 2015 04:45:20 -0500 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:33904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEann-0004Zv-05 for grub-devel@gnu.org; Fri, 23 Jan 2015 04:45:19 -0500 Received: by mail-wg0-f42.google.com with SMTP id x13so6471939wgg.1 for ; Fri, 23 Jan 2015 01:45:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=zbxnWTx+Vs8BpmQ+qV5YCOZZMdO4CYkelsjgQ1X+AgQ=; b=fe331CRH1p4HXEScgwGiyhXNe9KkwbMq2fuZQRG1bJXQIwP9rHfkCObOjRC5MKK9dz vBU7zRV1e0g2jvB1qnL1if3n9rW1b2gIlW3qD24IB89RE9aq0GonVFkp29zrTWpgNDA7 YOqH8Y5Fl3UDlQvF5V3TaAEHFHc1BeV4xJQU5LIH4Vj+rGzqfHfEOyIjLhGlrqZZ7erD YnRyNA7GUvcSTq7DJ8FJAzYggj0vyQmX40d4PcvZ2d22mHKesZYJSkiJnOe4OdtvZIrN D4JImnriZK6BTUktXl+F2sJ6K3b4xe/8/OL8+Edad9XCYZ0INW9I02rJSc07UXE/s9IU cjAg== X-Received: by 10.180.211.34 with SMTP id mz2mr1947095wic.56.1422006309963; Fri, 23 Jan 2015 01:45:09 -0800 (PST) Received: from ?IPv6:2a02:1205:501d:9210:c6e9:2fff:fe57:96ed? ([2a02:1205:501d:9210:c6e9:2fff:fe57:96ed]) by mx.google.com with ESMTPSA id hn2sm1481688wjc.5.2015.01.23.01.45.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jan 2015 01:45:09 -0800 (PST) Message-ID: <54C21824.6060407@gmail.com> Date: Fri, 23 Jan 2015 10:45:08 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: Does grub-mkrescue support UEFI hybrid USB/DVD images? References: <54C16AD2.7090808@pcbsd.org> <54C17680.9080804@gmail.com> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="X31XnFp8H12t5v2EHb0RI4f7pkKIM4pHV" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22a X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2015 09:45:22 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --X31XnFp8H12t5v2EHb0RI4f7pkKIM4pHV Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 23.01.2015 10:40, Andrei Borzenkov wrote: > On Fri, Jan 23, 2015 at 1:15 AM, Vladimir '=CF=86-coder/phcoder' Serbin= enko > wrote: >> On 22.01.2015 22:25, Kris Moore wrote: >>> >>> Hey all, >>> >>> We are trying to create hybrid USB/DVD images, and they work just fin= e >>> on BIOS. However it doesn't seem to work when creating UEFI. >>> >> Try this: >> diff --git a/grub-core/disk/efi/efidisk.c b/grub-core/disk/efi/efidisk= =2Ec >> index 3b12c34..983afdb 100644 >> --- a/grub-core/disk/efi/efidisk.c >> +++ b/grub-core/disk/efi/efidisk.c >> @@ -862,9 +862,7 @@ grub_efidisk_get_device_name (grub_efi_handle_t *h= andle) >> if (! ctx.partition_name) >> { >> grub_disk_close (parent); >> - if (is_cdrom) >> - return grub_strdup (device_name); >> - return 0; >> + return grub_strdup (device_name); >=20 > How is it possible? So we have EFI device path that refers to > partition (or at least to something that does not start on device > first block) but grub does not see this partition? In case of CD-ROM > this happens because CD-ROM media subtype actually refers to ESP and > so points inside CD-ROM. But how it can happen for hard disk? >=20 I think his EFI uses eltorito even from the stick. In that case we end up in exactly the same scenario as CD-ROM. > Kris, could you add output of device path (grub_efi_print_device_path) > at the beginning? >=20 >=20 >> } >> >> dev_name =3D grub_xasprintf ("%s,%s", parent->name, >> >> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> https://lists.gnu.org/mailman/listinfo/grub-devel >> >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >=20 --X31XnFp8H12t5v2EHb0RI4f7pkKIM4pHV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iF4EAREKAAYFAlTCGCQACgkQmBXlbbo5nOstSAD+OJb+BkKxpyFDMGhc0rUSkyvC N9cchfBpAGRZB2mRl+IA/jn9UEJJxrq/og3G9GhnX06aABrTZq2gBYdT2eke2hNz =iVxL -----END PGP SIGNATURE----- --X31XnFp8H12t5v2EHb0RI4f7pkKIM4pHV--