Project

General

Profile

Bug #29591 ยป fix_efibootmgr_netboot.patch

Patch based on 1.24-stable - Ben ter Haar, 04/22/2020 09:40 AM

View differences:

provisioning_templates/snippet/efibootmgr_netboot.erb
snippet: true
%>
<% if host_param('efi_bootentry') == 'previous' -%>
if [[ -d /sys/firmware/efi ]]; then
if [ -d /sys/firmware/efi ]; then
echo "Changing EFI boot order to preserve boot. Typically the previous entry"
echo "was network boot in netboot workflows but this can also break things."
echo "In that case use efi_keep_bootorder host parameter to keep it untouched."
......
echo
fi
<% elsif (entry = host_param('efi_bootentry')) -%>
if [[ -d /sys/firmware/efi ]]; then
if [ -d /sys/firmware/efi ]; then
echo "Trying to find EFI boot entry containing: <%= entry -%>"
echo "Boot order is currently:"
efibootmgr
    (1-1/1)