Bug #29591 ยป fix_efibootmgr_netboot.patch
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
|