Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

Fixed PXEGrub2 MAC file loading #417

Merged
merged 1 commit into from Aug 29, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion provisioning_templates/PXEGrub2/pxegrub2_global_default.erb
Expand Up @@ -10,7 +10,9 @@ timeout=20
regexp --set=1:m1 --set=2:m2 --set=3:m3 --set=4:m4 --set=5:m5 --set=6:m6 '^([[:xdigit:]]{1,2})\:([[:xdigit:]]{1,2})\:([[:xdigit:]]{1,2})\:([[:xdigit:]]{1,2})\:([[:xdigit:]]{1,2})\:([[:xdigit:]]{1,2})' "$net_default_mac"
mac=${m1}-${m2}-${m3}-${m4}-${m5}-${m6}
configfile=/grub2/grub.cfg-01-$mac
source "$configfile"
if [ -f "$configfile" ]; then
source "$configfile"
fi

<%= snippet "pxegrub2_chainload" %>

Expand Down