Skip to content

Commit

Permalink
Use the correct format for IPMI messages.
Browse files Browse the repository at this point in the history
Related: rhbz#782019
Resolves: rhbz#1201174
  • Loading branch information
clumens committed Mar 31, 2015
1 parent e506d48 commit 24e7ca8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pyanaconda/iutil.py
Expand Up @@ -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])
Expand Down

0 comments on commit 24e7ca8

Please sign in to comment.