mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	disable rflash command for normal user and check error state
This commit is contained in:
		@@ -582,6 +582,11 @@ sub parse_args {
 | 
			
		||||
            return ([ 1, "Unsupported command: $command $subcommand" ]);
 | 
			
		||||
        }
 | 
			
		||||
    } elsif ($command eq "rflash") {
 | 
			
		||||
        #
 | 
			
		||||
        # disable function until fully supported by openbmc 
 | 
			
		||||
        # Currently waiting for issue https://github.com/openbmc/openbmc/issues/2074 to be fixed
 | 
			
		||||
        #
 | 
			
		||||
        $check = unsupported($callback); if (ref($check) eq "ARRAY") { return $check; }
 | 
			
		||||
        my $filename_passed = 0;
 | 
			
		||||
        my $updateid_passed = 0;
 | 
			
		||||
        my $option_flag;
 | 
			
		||||
@@ -1890,6 +1895,11 @@ sub rflash_response {
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if ($activation_state =~ /Software.Activation.Activations.Failed/) {
 | 
			
		||||
            # Activation failed. Report error and exit
 | 
			
		||||
            xCAT::SvrUtils::sendmsg([1,"Activation of firmware failed"], $callback, $node);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if ($activation_state =~ /Software.Activation.Activations.Active/) { 
 | 
			
		||||
            if (scalar($priority_state) == 0) {
 | 
			
		||||
                # Activation state of active and priority of 0 indicates the activation has been completed
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user