On Fri, Feb 27, 2015 at 5:47 PM, Fernando Rodriguez
<frodriguez.develo...@outlook.com> 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

Reply via email to