Open JoergFF opened 1 year ago
Jörg,
I looked at this, and it needs a few changes:
Thankfully this firmware issue is fairly rare.
I have the changes coded and will submit a patch soon.
Andy
Patch submitted to this github repo (ver 3.1.9-2)
Resolved in ipmiutil-3.1.9-2 in github and ipmiutil.sf.net
Hello,
I forward this bug from Debian[1].
`Hi,
In some cases (Intel S2600STB boards), ipmiutil fails to install the first time: Setting up ipmiutil (3.1.8-4) ... SDR record 61 is malformed, length 12 is less than minimum 12 0061 GetSDR error -25, rlen = 10 dpkg: error processing package ipmiutil (--configure): installed ipmiutil package post-installation script subprocess returned error exit status 231 Processing triggers for man-db (2.11.2-2) ... Errors were encountered while processing: ipmiutil E: Sub-process /usr/bin/dpkg returned an error code (1)
The second time around, it works because /var/lib/ipmiutil/sensor_out.txt now exists.
The issue can be reproduced by removing /var/lib/ipmiutil/sensor_out.txt and running the postinst script again (with -x added here to highlight the problem):
dpkg-reconfigure ipmiutil
The issue here is that "ipmiutil sel" works but "ipmi sensor" does not. https://jff.email/cgit/ipmiutil.git/tree/debian/postinst?h=debian/3.1.9-1#n16 https://jff.email/cgit/ipmiutil.git/tree/debian/postinst?h=debian/3.1.9-1#n22
The fact that a failing "ipmiutil sensor" command prevents the installation is problematic. Would it please be possible to make this failure non-fatal?
https://bugs.launchpad.net/ubuntu/+source/ipmiutil/+bug/1786562 seems to be the same issue, it concerns the same error message with an Intel S2600STB.
PS: maybe there is also an upstream ipmiutil bug to report here? "length 12 is less than minimum 12" sounds like an off-by-one error.
Kind regards,
Louis`
CU Jörg
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040349