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 75414138AD6 for ; Mon, 2 Mar 2015 07:02:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2DD8FE0924; Mon, 2 Mar 2015 07:02:27 +0000 (UTC) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.230]) by pigeon.gentoo.org (Postfix) with ESMTP id 216F2E07D5 for ; Mon, 2 Mar 2015 07:02:26 +0000 (UTC) Received: from [97.101.128.114] ([97.101.128.114:44527] helo=acer.localnet) by cdptpa-oedge03 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 86/C2-07663-10B04F45; Mon, 02 Mar 2015 07:02:25 +0000 From: Fernando Rodriguez To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] EFI install ( continum) [ system hangs at boot ] Date: Mon, 02 Mar 2015 02:00:14 -0500 Message-ID: <1568048.lIjysblnmp@acer> User-Agent: KMail/4.14.3 (Linux/3.18.8; KDE/4.14.3; x86_64; ; ) In-Reply-To: References: <20150227065332.dba99abfca4497c933f57beb@gmail.com> <1913116.pmqhcRF1uj@acer> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-RR-Connecting-IP: 107.14.168.142:25 X-Cloudmark-Score: 0 X-Archives-Salt: a7ffe137-2f7d-4d52-bc57-b32dd59a731f X-Archives-Hash: eb6e9a009dd3461d3ea329beabbe9e33 On Saturday, February 28, 2015 12:50:37 PM Tom H wrote: > On Fri, Feb 27, 2015 at 5:47 PM, Fernando Rodriguez > wrote: > > > > Efibootmgr is not a boot manager, it's an utility to interface with the EFI > > firmware on the motherboard and you don't need to hardcode the command line on > > the kernel, look at the -u option of efibootmgr. You can even load an initrd > > with it by specifying the efi_memmap boot option. I use something like this (it > > shoulld work with any firmware because Windows uses it): > > > > efibootmgr -p 2 -c -b 0001 -l "\EFI\Linux\vmlinuz.efi" -L "Gentoo Linux" -u > > "root=/dev/sda2 resume=/dev/sda3 quiet splash efi_memmap > > initrd=/EFI/Linux/initramfs.img" > > Interesting. I must be over-complicating things because I use the > following when I want to use the EFI stub without gummiboot: > > # cat /boot/efi/efi-extra.txt \ > | iconv -f ascii -t ucs2 \ > | efibootmgr -b 0000 -c -L 3.19.0 -l vmlinuz-3.19.0 -u -@ - > > where > > # cat /boot/efi/efi-extra.txt > initrd=initrd.img-3.19.0 > root=UUID=b51ee688-137c-47ec-9635-b69434b4e1f8 ro > init=/lib/systemd/systemd > It's a good idea to do that as it's less error prone. I don't know if you need iconv in the pipeline but if you put the arguments on the command line it's not needed. I just called my kernel vmlinuz.efi so I don't need to do that everytime I update it and use grub if I need to boot an alternate kernel or boot with different options. -- Fernando Rodriguez