mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +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:
		| @@ -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"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user