-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iPXE simplified back to a single entry
Easier to keep the .efi files inside the same iso tree. Add a note about what firmware to use with KVM. Fix the double empty lines after distro list.
- Loading branch information
Showing
4 changed files
with
44 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,33 @@ | ||
# iPXE | ||
for isofile in $isopath/ipxe/ipxe*.iso; do | ||
if [ ! -e "$isofile" ]; then break; fi | ||
regexp \ | ||
--set 1:isoname \ | ||
--set 2:version \ | ||
"^${isopath}/ipxe/(ipxe(.*)?\.iso)\$" "${isofile}" | ||
menuentry "iPXE ${version}" "${isofile}" "${isoname}" --class net { | ||
set isofile=$2 | ||
set isoname=$3 | ||
echo "Using ${isoname}..." | ||
loop $isofile | ||
linux (loop)/ipxe.lkrn | ||
} | ||
done | ||
# iPXE .iso "DOS magic is invalid." on EFI, so use special .efi | ||
if [ "${grub_platform}" != "efi" ]; then | ||
for isofile in $isopath/ipxe/ipxe*.iso; do | ||
if [ ! -e "$isofile" ]; then break; fi | ||
regexp \ | ||
--set 1:isoname \ | ||
--set 2:version \ | ||
"^${isopath}/ipxe/(ipxe(.*)?\.iso)\$" "${isofile}" | ||
menuentry "iPXE (iso) ${version}" "${isofile}" "${isoname}" --class net { | ||
set isofile=$2 | ||
set isoname=$3 | ||
echo "Using ${isoname}..." | ||
loop $isofile | ||
linux (loop)/ipxe.lkrn | ||
} | ||
done | ||
else | ||
for efifile in $isopath/ipxe/ipxe*.efi; do | ||
if [ ! -e "$efifile" ]; then break; fi | ||
regexp \ | ||
--set 1:efiname \ | ||
--set 2:version \ | ||
"^${isopath}/ipxe/(ipxe(.*)?\.efi)\$" "${efifile}" | ||
menuentry "iPXE (efi) ${version}" "${efifile}" "${efiname}" --class net { | ||
set efifile=$2 | ||
set efiname=$3 | ||
echo "Using ${efiname}..." | ||
insmod part_gpt | ||
insmod chain | ||
chainloader $isopath/ipxe/$efiname | ||
} | ||
done | ||
fi |