2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-08 19:28:36 +00:00

Use the iPXE native format for mac

It's been enough years by now, just use what was accepted
upstream rather than the preliminary syntax in our branch.
This commit is contained in:
Jarrod Johnson
2018-06-04 13:31:36 -04:00
parent 23d63d59bb
commit 85ce5b7e29

View File

@@ -272,7 +272,7 @@ sub setstate {
print $pcfg "imgfetch -n kernel http://" . '${next-server}/tftpboot/' . $kern->{kernel} . "\n";
print $pcfg "imgload kernel\n";
if ($kern->{kcmdline}) {
print $pcfg "imgargs kernel " . $kern->{kcmdline} . ' BOOTIF=01-${netX/machyp}' . "\n";
print $pcfg "imgargs kernel " . $kern->{kcmdline} . ' BOOTIF=01-${netX/mac:hexhyp}' . "\n";
} else {
print $pcfg "imgargs kernel BOOTIF=" . '${netX/mac}' . "\n";
}