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 2C800138870 for ; Tue, 5 Feb 2013 04:25:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BD64721C003; Tue, 5 Feb 2013 04:24:57 +0000 (UTC) Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CB064E0466 for ; Tue, 5 Feb 2013 04:24:56 +0000 (UTC) Received: by mail-ie0-f169.google.com with SMTP id 13so4835105iea.28 for ; Mon, 04 Feb 2013 20:24:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:x-originating-ip:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:x-gm-message-state; bh=cui6pcr2N5TFkJ+DISvtnnhYW0LI6gyqBJhHDBadQ1k=; b=lkDSi1/XoHC03rS/LoLHgvllqNrIDLf2jDtNRFJTJ2G4flM32mcjAuqE7qA3nK7cBP X2MRAMDnEXjjPg8kebYBhHnMix7OoBCVrkhO6O9a5i8DrKuy0YODOvd2c3PgASe1oGu+ Hx/Wj4WOOWuDR+07Wp4MzphAv1n0Xj+LhN/198elxRQ6WSQyzGGTKXw09FdsWdG5N891 HI1j4afDEnWAxfW6n5BVCPNPVB9iTJBHuu+fBr50yh32+klgh67A1VeJcge/83PL1fq/ sGlQPqaiNsVNNrC1tEOTWjM0TK69JjIiZ6YUiMOv/4qkW7l3lCQ6ZQ2m7i+eVybzyJSg eCRQ== 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 X-Received: by 10.42.91.7 with SMTP id n7mr19756789icm.40.1360038295705; Mon, 04 Feb 2013 20:24:55 -0800 (PST) Sender: antarus@scriptkitty.com Received: by 10.64.25.3 with HTTP; Mon, 4 Feb 2013 20:24:55 -0800 (PST) X-Originating-IP: [75.147.136.182] In-Reply-To: <511040E1.207@pluskal.org> References: <51100876.5060507@pluskal.org> <20130204223456.GA21225@kroah.com> <51103A02.5050108@pluskal.org> <20130204225907.GA1696@kroah.com> <511040E1.207@pluskal.org> Date: Mon, 4 Feb 2013 20:24:55 -0800 X-Google-Sender-Auth: lnuz6Cpsvfm_GtivWpw8dTNJ00Y Message-ID: Subject: Re: [gentoo-dev] Proper installation path for efi binaries (.efi) From: Alec Warner To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQmaYt5QNlRLeNIJkbbEjeuSdZ2+0ESatkdVN7pKeLjm5rfpPUU5VRKvGQf5rBo/1IW0EPWl X-Archives-Salt: c9541daf-54f6-4f71-9151-fdc768aaa26f X-Archives-Hash: 96081fb85d43a780a1736eccefe614cf On Mon, Feb 4, 2013 at 3:14 PM, Martin Pluskal wrote: > 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 binaries >>>>> (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. If >>>> 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/elilo >>> and grub2 is placed into /boot/efi by grub2-install. >> >> 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. >> >> 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. >> >> 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.) >> >> 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 Can you even guarantee that /boot is mounted when your package is installed? That would be my major concern on Gentoo... -A >> >> thanks, >> >> greg k-h >> > thanks > > Martin > >