From b909a7ed30873c6fc2fcbd964b775b30737fec28 Mon Sep 17 00:00:00 2001 From: ertaozh Date: Tue, 9 May 2017 06:12:49 -0400 Subject: [PATCH] Modify bootloader label to be "xCAT Genesis shell" for petitboot --- xCAT-server/lib/xcat/plugins/petitboot.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/petitboot.pm b/xCAT-server/lib/xcat/plugins/petitboot.pm index f99b41c92..f9c0e104c 100644 --- a/xCAT-server/lib/xcat/plugins/petitboot.pm +++ b/xCAT-server/lib/xcat/plugins/petitboot.pm @@ -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";