[PATCH] Use the correct format for IPMI messages.

Brian C. Lane bcl at redhat.com
Tue Mar 24 21:59:07 UTC 2015


On Tue, Mar 24, 2015 at 04:03:29PM -0400, Chris Lumens wrote:
> Related: rhbz#782019
> Resolves: rhbz#1201174
> ---
>  pyanaconda/iutil.py | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/pyanaconda/iutil.py b/pyanaconda/iutil.py
> index f096619..6798c41 100644
> --- a/pyanaconda/iutil.py
> +++ b/pyanaconda/iutil.py
> @@ -1204,10 +1204,11 @@ def ipmi_report(event):
>  
>      # EVM revision - always 0x4
>      # Sensor type - always 0x1F for Base OS Boot/Installation Status
> -    # Sensor num - passed in event
> -    # Event dir & type - always 0x0 for anaconda's purposes
> -    # Event data 1, 2, 3 - 0x0 for now
> -    eintr_retry_call(os.write, fd, "0x4 0x1F %#x 0x0 0x0 0x0 0x0\n" % event)
> +    # Sensor num - always 0x0 for us
> +    # Event dir & type - always 0x6f for us
> +    # Event data 1 - the event code passed in
> +    # Event data 2 & 3 - always 0x0 for us
> +    eintr_retry_call(os.write, fd, "0x4 0x1F 0x0 0x6f %#x 0x0 0x0\n" % event)
>      eintr_retry_call(os.close, fd)
>  
>      execWithCapture("ipmitool", ["sel", "add", path])
> -- 
> 2.2.2

Ack. Is there a specification we can refer to in the comments?

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list