Re: UEFI boot order, Re: Tip: Remote FAI install

Thomas Lange <[email protected]>
Newsgroups gmane.linux.debian.fai
Message-ID <[email protected]>
Hi,

I found this code that move the first boot entry (which is expected to
be the new entry after an installation) to the end of the boot list.

https://community.theforeman.org/t/efi-boot-order-with-centos-7-network-boot-vs-local-boot/10529/2

# the EFI boot manager is only installed on UEFI hosts by Anaconda
if [[ -f /sbin/efibootmgr ]]; then
    echo "- Changing EFI boot order to preserve network boot ..."
    created_entry=$(efibootmgr | grep "BootOrder" | cut -d " " -f 2 | cut -d "," -f 1)
    others=$(efibootmgr | grep "BootOrder" | cut -d " " -f 2 | cut -d "," -f 2-)
    new_order="${others},${created_entry}"
    efibootmgr -q -o ${new_order}
fi

-- 
regards Thomas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.