2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 11:42:05 +00:00

Merge pull request #3012 from zet809/fix_issue_3003

Modify bootloader label to be "xCAT Genesis shell" for petitboot
This commit is contained in:
Victor Hu 2017-05-09 13:14:29 -04:00 committed by GitHub
commit 3e7afecee2

View File

@ -203,8 +203,12 @@ sub setstate {
} elsif ($kern and $kern->{kernel} and $cref and $cref->{currstate} ne "offline") {
#It's time to set petitboot for this node to boot the kernel, but only if not offline directive
print $pcfg "default xCAT\n";
print $pcfg "label xCAT\n";
my $label = "xCAT";
if ($cref->{currstate} eq "shell") {
$label = "xCAT Genesis shell";
}
print $pcfg "default $label\n";
print $pcfg "label $label\n";
print $pcfg "\tkernel $kern->{kernel}\n";
if ($kern and $kern->{initrd}) {
print $pcfg "\tinitrd " . $kern->{initrd} . "\n";