mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-08 13:55:37 +00:00
Support x86, ppc64 and arm in grub
Arm and ppc64 do not have linuxefi and initrdefi.
This commit is contained in:
@ -254,14 +254,19 @@ sub setstate {
|
||||
$protocolrootdir = $tftpdir;
|
||||
}
|
||||
|
||||
my $efi = "";
|
||||
if ($nodearch =~ /x86/i) {
|
||||
$efi = "efi";
|
||||
}
|
||||
|
||||
if ($kern and $kern->{kcmdline}) {
|
||||
print $pcfg " linux $protocolrootdir/$kern->{kernel} $kern->{kcmdline}\n";
|
||||
print $pcfg " linux$efi $protocolrootdir/$kern->{kernel} $kern->{kcmdline} BOOTIF=\$net_default_mac\n";
|
||||
} else {
|
||||
print $pcfg " linux $protocolrootdir/$kern->{kernel}\n";
|
||||
print $pcfg " linux$efi $protocolrootdir/$kern->{kernel} BOOTIF=\$net_default_mac\n";
|
||||
}
|
||||
print $pcfg " echo Loading initial ramdisk ...\n";
|
||||
if ($kern and $kern->{initrd}) {
|
||||
print $pcfg " initrd $protocolrootdir/$kern->{initrd}\n";
|
||||
print $pcfg " initrd$efi $protocolrootdir/$kern->{initrd}\n";
|
||||
}
|
||||
|
||||
print $pcfg "}";
|
||||
|
Reference in New Issue
Block a user