From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2807F138866 for ; Mon, 4 Feb 2013 23:14:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D16ADE02CE; Mon, 4 Feb 2013 23:14:48 +0000 (UTC) Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B85EAE0268 for ; Mon, 4 Feb 2013 23:14:47 +0000 (UTC) Received: by mail-we0-f173.google.com with SMTP id r5so5237016wey.18 for ; Mon, 04 Feb 2013 15:14:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pluskal.org; s=google; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:openpgp:content-type; bh=3N1LyHO2IFgx1tb9oeqBKQVrxf9TGppKwWgeJKIiFdo=; b=b9qp02UcCdAIlszEflfcJpQsSeUfzBRpYtrtja9xYlMcMroC+qFyP7s8JJqME+JMoq cPs6BkZX4Ft+eFzhr2qsiIA2WdLj2kjNY8VpGRLCv6fKN8DYAZILQvpqUnxIm7vqttqP tu7ulLyFLfjE0TeKBtpIHOIeKteCqDLAfFruY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:openpgp:content-type :x-gm-message-state; bh=3N1LyHO2IFgx1tb9oeqBKQVrxf9TGppKwWgeJKIiFdo=; b=DdP5Uw9bhxyMvLDZqhDE48kJK3YS8vT7KMjM1ZjQpCJCG8p6oiHZOhyutdt2u4PvvC tpb/WaPa7BOx4n4aPYmclMJFL0Uk8FkJwUUvazQww9MZdSF5adBJJo6QYix0UoW/Qnwc CIQv7CVVXShbKgYvogiZPVfVC8r8D98fknTdQn8P3TvGgY/3Wq3VnXPeUwWlP/jzDJNB h1vMXrnyV9xaz2P4aROL/IRcLIasIxTjVjszcGSP9DFWafXf2tOVfacLWOYRN0ornR+J Hp8kTyT/yJEFmySCyLzT+jnjWGEMm/tD+nqamqbtfDiEdu21AeAQD9vlLyJXQx8MzB1y YXMg== X-Received: by 10.180.92.129 with SMTP id cm1mr13392219wib.10.1360019686249; Mon, 04 Feb 2013 15:14:46 -0800 (PST) Received: from [192.168.1.2] (ip-78-45-137-28.net.upcbroadband.cz. [78.45.137.28]) by mx.google.com with ESMTPS id j9sm16201737wia.5.2013.02.04.15.14.44 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Feb 2013 15:14:45 -0800 (PST) Message-ID: <511040E1.207@pluskal.org> Date: Tue, 05 Feb 2013 00:14:41 +0100 From: Martin Pluskal User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20130117 Thunderbird/19.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Proper installation path for efi binaries (.efi) References: <51100876.5060507@pluskal.org> <20130204223456.GA21225@kroah.com> <51103A02.5050108@pluskal.org> <20130204225907.GA1696@kroah.com> In-Reply-To: <20130204225907.GA1696@kroah.com> X-Enigmail-Version: 1.6a1pre OpenPGP: id=FDDE6857 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2OKCOKQMUWMBMOVLOSNKI" X-Gm-Message-State: ALoCoQmG/COqzk3F6NOjdOxB0Eq5B7ByuuFT1QhCQeGvEKM3UrWn7rlulBdVYG5Gxq/3FJ80RMEZ X-Archives-Salt: 91e94286-a099-46cb-90dd-91193106c5db X-Archives-Hash: 7a0cc29397b81302efa80405a4b34a66 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2OKCOKQMUWMBMOVLOSNKI Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 4.2.2013 23:59, Greg KH wrote: > On Mon, Feb 04, 2013 at 11:45:22PM +0100, Martin Pluskal wrote: >> On 4.2.2013 23:34, Greg KH wrote: >>> On Mon, Feb 04, 2013 at 08:13:58PM +0100, Martin Pluskal wrote: >>>> Hi >>>> I am curious what is the proper path for installation of efi binari= es >>>> (such as shim.efi) in gentoo. I don't think that installing them >>>> directly into /boot/efi... is proper way - it seems to me that >>>> /usr/lib64/efi or /usr/libexec/efi is more appropriate location for >>>> them. What's your opinion? >>> >>> It depends on if you want the bootloader to use the binary or not. I= f >>> you do, it needs to be in /boot/efi/, otherwise it will never be able= to >>> be run by the UEFI system. >> Well, in order to boot you have to place .efi into /boot/efi, I am not= >> sure if it is the best idea to directly install everything with .efi >> into /boot/efi. As far as I know, elilo is installed into /usr/lib/eli= lo >> and grub2 is placed into /boot/efi by grub2-install. >=20 > If elilo is in /usr/lib/elilo, the UEFI bios can not run the binary as > it can't even see the filesystem to read the binary from. Well it cannot, elilo.efi has to be placed to /boot/efi, install path is however /usr/lib/elilo/elilo.efi. >=20 > So how can anything that is .efi _not_ be in /boot/efi and still work? I am talking about location to which .efi is supposed to be placed after installation, not necessary from which it can work. >=20 > Have you tried this out on your system with any success? Why would I try it? I am not suggesting that it would work. After you emerge elilo or grub2 you are still not able to boot unless you do other steps (grub2-install or cp elilo.efi /boot/efi... && efibootmgr ... etc.)= >=20 > What exactly is the issue you are trying to solve here? I am thinking about creating ebuild for shim. I was wondering if there is any policy or suggestion where to place .efi binaries or how to handle them in gentoo - it seems that there is none so perhaps there should be agreed on what best practice is (install directly into /boot/efi or install else and let user manually copy .efi to /boot/efi or something completely different (eselect efi ...)). In suse default path is for example /usr/lib64/efi/: ls /usr/lib64/efi/: MokManager.efi elilo.efi shim-suse.efi shim.efi xen-4.2.1_02-0.7.2.efi xen-4.2.efi xen-4.efi xen.efi yet /boot/efi contains only elilo.efi >=20 > thanks, >=20 > greg k-h >=20 thanks Martin ------enig2OKCOKQMUWMBMOVLOSNKI 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.4.9 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJREEDlAAoJEFskXWf93mhXSz8P/AlLA+ZPP9fgmj4SFrRZxp8J 0o3xznHWFydj7ShRdJ93XnCEwqibXFUh0HPnKPnTjf5Db3TVIul2dUlSG8nRER7e Fyv7JUJkCN2x68KeX2nXIf5QOSFo9AW0wodPDIoilfEhrNo7hY+lsS97l6VuhG9T ttlpCNSqg/FwxBWjGlK+/666t5yoFIS0b3/kIRRxqyAV0lTNPNGJAFjtJ9tsTebl 0q6yqbWzU8qK/SN2/IWE9e6K0Wfz2IrFl9VW++xaHMP40gj0umK8oi1VB9gVw2M/ ++bSQsGR+IrDxPoIjUOyJnYGeBH9OV8Wqmy+r1I9VpxNSpDwJaQUHbzwWU7vzGg2 EfPSGBEBC9fquRrEJv59lh7/IqOqedbU33cCciccqagiu7e4R7QgZXUZkkBfkWUc JHpATdoqMkom0y7wfeRGfovBkwIzgaTuluTYaBzMJcrPjkSASNVID3BcXjuFmqfY 3cKLc6n785ieSGCJZNLebORkkpVZrj98XWOwlpxvrGg5b5V58xsP5wRjEbHE0BBB A3EFWZ5PxqtHi2zyjpD2tvILiAU+3XUfJlDAMStPly6rLpauIVFsEn2S9LBU8VEj LhEN59JC9tGIASxeylTBj4yJBQOBtGRP9IT5yiCxYPaezNaKjJ3AK9xqX2dISRHR 0p5y5FeRldlKUEm7p3wi =oMlZ -----END PGP SIGNATURE----- ------enig2OKCOKQMUWMBMOVLOSNKI--