Skip to content

Commit

Permalink
use ipxe only when boot mode is pxe (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmanzari authored Jan 15, 2024
1 parent d818c85 commit 25ff242
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ until ipmi_cmd power status | grep -i -q "Chassis Power is off"; do
sleep 30
done

if [ "${ipxe_via_vmedia}" == "true" ]; then
if [[ "${ipxe_via_vmedia}" == "true" ]] && [[ "${BOOT_MODE}" == "pxe" ]]; then
log "The host requires an ipxe image to boot via vmedia in order to perform the pxe boot..."
mount.vmedia.ipxe "${HOST}"
fi
Expand Down

0 comments on commit 25ff242

Please sign in to comment.