Skip to content
jc-rs
GitHub

efibootmgr

--efibootmgrv1.0.0

Converts `efibootmgr` command output to JSON

Linuxcommand
$ efibootmgr | jc-rs --efibootmgr

A real pair

From the reference corpus (opensuse-leap-15.5/efibootmgr.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. CI compares jc-rs with it field by field under the published differential. Hover a value to see where it came from.

efibootmgropensuse-leap-15.5
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0000,0001
Boot0000* WARNING
Boot0001* Embedded NIC 1 Port 1 Partition 1
Boot0002* opensuse-secureboot
MirroredPercentageAbove4G: 0.00
MirrorMemoryBelow4GB: false
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
{
  "boot_current": "0002",
  "timeout_seconds": 0,
  "boot_order": [
    "0002",
    "0000",
    "0001"
  ],
  "mirrored_percentage_above_4g": 0.0,
  "mirror_memory_below_4gb": false,
  "boot_options": [
    {
      "boot_option_reference": "Boot0000",
      "display_name": "WARNING",
      "boot_option_enabled": true
    },
    {
      "boot_option_reference": "Boot0001",
      "display_name": "Embedded NIC 1 Port 1 Partition 1",
      "boot_option_enabled": true
    },
    {
      "boot_option_reference": "Boot0002",
      "display_name": "opensuse-secureboot",
      "boot_option_enabled": true
    }
  ]
}

Fixture coverage

2/2oracle-valid pairs match under the published structural JSON comparison

Magic syntax

jc-rs efibootmgrjc-rs runs the command itself and parses what it prints. Recognised for: `efibootmgr`

Source: crates/jc-rs-parsers/src/system/efibootmgr.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare