infix icon indicating copy to clipboard operation
infix copied to clipboard

Basic hard-coded alarm system

Open troglobit opened this issue 1 year ago • 0 comments

Errors encountered at startup, or validating system, should trigger alarms. For example:

  • Broken VPD
  • Missing secondary bootloader
  • Broken primary bootloader
  • Broken Linux partition
  • Broken startup-config
  • Broken failure-config

When encountered at boot (or during background checksumming after boot) these errors could simply be written to a structure in /run/system/alarm/, and if this (and subdirectories) are non-empty we trigger a summary alarm that in turn can trigger a LED indication.

/run/
  `- system/
      `- alarm/
          |- hw/
          |   `- broken-vpd.log
          |- bootloader/
          |   `- broken-primary.log
          |- infix/
          `- misc/

The contents are logged, at the time of detection, and also saved here for later replication and debugging.

troglobit avatar Jul 02 '24 11:07 troglobit