My earlier patch solves the problem for AMD family 15, but clearly not for
family 16 and newer. For a complete fix one will need to modify the init
script. If the CPU is unsupported, both daemon and trigger mode should be
disabled.

It may be useful to add an --is-cpu-supported command-line option to mcelog.
This would check whether the CPU type is supported and return true or false
accordingly. One could then take advantage of this in the init script
(and perhaps in postinst, to alert the user about the lack of support; and
maybe in puppet manifests as well, to avoid useless ensure=>running).

By the way, are the return codes for /etc/init.d/mcelog status LSB-compliant?
I thought not.

One might conceivably want to install mcelog on systems with an unsupported
CPU, e.g. to decode data obtained from other systems. Right now the way to
do it involves "update-rc.d mcelog disable", but this doesn't cope very
well with software upgrades that add or remove support for certain CPUs.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1279293

Title:
  post-install fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mcelog/+bug/1279293/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to