You are not logged in.

#1 2016-01-02 03:05:37

st
Member
From: Chicago, USA
Registered: 2015-11-04
Posts: 1

Is There A UEFI Shell Equivalent To efibootmgr -u Option?

Hi everyone!

Arch forums might not be the best place to post this question, but since Arch users appear to be ahead of the curve when it comes to working with EFI / UEFI, I thought I'd try my luck here first. Does anyone know of a UEFI Shell v2 command that I can use to set arguments to pass to the boot loader in the style of the -u option of efibootmgr? Currently, to create a boot entry for Arch, I first boot into a Linux system with efibootmgr installed, and issue the following command in Bash as a root user:

efibootmgr -c -L "Arch Linux" -l /EFI/arch/vmlinuz-linux -u "root=UUID=$( lsblk -o NAME,UUID | awk '/sda2/ {print $2 }' ) ro initrd=/EFI/arch/initramfs-linux.img"

(/dev/sda2 is my root file system, so the whole lsblk | awk thing is just a convenient way to parse out its UUID.)

Is there a way to store the root=, ro, initird=, and other boot arguments in the BootX variables via bcfg or some other UEFI Shell v2 command? Thank you in advance for any suggestions!

Offline

#2 2016-01-02 07:16:31

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: Is There A UEFI Shell Equivalent To efibootmgr -u Option?

I think that someone may compile the efibootmgr to work in a UEFI shell v2.


do it good first, it will be faster than do it twice the saint wink

Offline

Board footer

Powered by FluxBB