Skip to content

Basic hard-coded alarm system  #509

@troglobit

Description

@troglobit

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions