reopen 388929 retitle 388929 mcelog: Debconf note -- Please use the error type thanks
Hi, Julien BLACHE <[EMAIL PROTECTED]> (23/09/2006): > Christian Perrier <[EMAIL PROTECTED]> wrote: > > Could you give more details about this so that further checks can > > easily avoid pointing again to mcelog? Details would help Thomas > > Huriaux to improve his scripts. > > I'm using the note to warn the admin when mcelog is not usable on the > machine. I don't really care whether the note is displayed or not, > because in the latter case the admin will get a mail, which is even > better. > > I used to display the warning and mail root in the postinst, but > debconf is the right way to do it, as discussed previously (see > archived bugs for mcelog). > > It is important to warn the admin in this case because either: > - there is no hardware support for MCEs, and mcelog is useless > - kernel support is lacking, or the device node is not there, so > mcelog cannot work The following code: | # run mcelog --debian-test (Debian extension) to check whether | # /dev/mcelog is usable | MCEMSG=$(/usr/sbin/mcelog --debian-test) | if [ "$?" != 0 ]; then | [...] | db_input medium mcelog/unusable || true really seems to fit the criterions of an "error" template, as suggested by Christian. Cheers, -- Thomas Huriaux
signature.asc
Description: Digital signature