The Way Out: Quiesce, Run, Verify, Reboot

Site Admin · 4 Dec 2026 · Network Hardware & NOS

There is no patch. There is a sequence: silence the reader, run the command, prove the file parses, prove it points at the slot you meant, and only then reboot — with a console path you have already tested.

There is no patch. There is a sequence: silence the reader, run the command,
prove the file parses, prove it points at the slot you meant, and only then
reboot — with a console path you have already tested.

The ladder

Rung Control What it buys
1 Baseline the config A known-good hash to compare against
2 Quiesce the inventory reader Removes the race deterministically
3 Run boot-next in a wrapper The command cannot run with the reader active
4 Verify grub.cfg before reboot Turns a deferred failure into a caught one
5 Reboot in a controlled window Console coverage, drain, rollback ready
6 Recover from grub> A procedure for the failure you did not catch
7 Audit the fleet Finds the switches already carrying a torn file
8 Leave 5.18.x or escalate The only structural remedy

Rung 1: baseline the file

Before any image operation, record what a good file looks like:

sudo sha256sum /boot/grub/grub.cfg | sudo tee /var/lib/grub-baseline.sha256
sudo grub-script-check /boot/grub/grub.cfg && echo "baseline parses"

Store the baseline outside /boot — on the running root filesystem or, better,
in your configuration management. A baseline that lives only on the switch is
lost when the switch does not boot.

Rung 2: quiesce the reader

This is the control that actually removes the bug. Stop the exporter for the
duration of the image operation:

sudo systemctl stop prometheus-node-exporter
# or, if you must keep the unit running for other metrics:
sudo systemctl mask --runtime prometheus-node-exporter

Two nuances matter:

If you cannot stop the exporter, remove the image-inventory collector from its
textfile directory for the window. The metric is not worth a dead switch.

Rung 3: run the command in a wrapper

The safe sequence is short enough to script, and it should be a script rather
than a runbook step, because scripts do not skip steps at 02:00:

  1. assert the exporter is stopped (or the collector is absent);
  2. assert grub.cfg parses before the change;
  3. run nv action boot-next system image other;
  4. assert grub.cfg parses after the change;
  5. compare the hash with the baseline and report a diff;
  6. assert the pending boot target is the slot you intended;
  7. restart the exporter only if step 4–6 passed;
  8. abort loudly otherwise, and do not reboot.

MITIGATION/bin/boot-next-safe.sh implements exactly this, with --yes
required for the state-changing path and a dry-run mode that only reports.

Rung 4: verify before reboot

grub-script-check is the single highest-value command in this series. It is
shipped with the boot stack, it is free, and it answers the only question that
matters:

grub-script-check /boot/grub/grub.cfg && echo OK

Then check the content, not only the syntax:

grep -n "^menuentry" /boot/grub/grub.cfg
grep -n "linux\|initrd" /boot/grub/grub.cfg
nv show system image

You are looking for a menuentry whose kernel and initrd paths match the slot
nv show system image says is next. A file that parses but points at the wrong
partition is a different outage.

Rung 5: reboot in a controlled window

Before the reboot: drain the switch (raise BGP local preference or shut the
uplinks gracefully), confirm the peer is carrying traffic, confirm console
access works — not "exists", works — and have the other slot's boot entry
written down. Then reboot, and verify forwarding, sessions and FIB after it
returns.

The window is not bureaucracy. It is the difference between a failed boot at
02:00 on a Tuesday and a failed boot in a change window with a console attached.

Rung 6: recover from grub>

If the switch is already at the prompt, the recovery is mechanical:

grub> ls
grub> set root=(hd0,gpt5)
grub> linux /boot/vmlinuz-<version> root=/dev/sda5
grub> initrd /boot/initrd.img-<version>
grub> boot

Substitute the partition that holds a valid image — ls (hd0,gpt5)/boot will
tell you. Once the switch is up, regenerate the configuration from the running
system, or boot the other slot and repair the file from there. If the image is
damaged rather than the config, the path is ONIE: reboot, select ONIE at the
boot menu, and reinstall.

MITIGATION/config/console-recovery.md carries the full procedure, including
the serial settings and the ONIE path.

Rung 7: audit the fleet

The switches you have not rebooted are the ones you do not know about. A
read-only audit answers three questions per device: does grub.cfg parse, does
its hash match the baseline, and does the pending boot target match the intended
slot.

MITIGATION/bin/fleet-grub-audit.sh runs that check locally or over SSH across
an inventory file, writes a CSV, and exits non-zero if any switch fails. Run it
after every image campaign, not only after an incident.

Rung 8: leave 5.18.x, or escalate with evidence

The affected range is one minor train. Leaving it is plausible in a way that
leaving a nine-train range is not — but only if the target train is genuinely
free of the defect, and the missing release-note row means you cannot prove that
from the notes. Test the target in a lab with the exporter running, or keep the
controls.

If you stay, escalate with the file, the hash, the nvued action log, the
exporter configuration and the exact Cumulus image release. The vendor cannot
fix what it cannot see, and the public record no longer carries the row.

The bundle

MITIGATION/ ships with this series, labelled mitigations only — no upstream
fix exists
: a config verifier, a baseline/checksum tool, a safe boot-next
wrapper, a fleet audit, the inventory-reader serialisation note, the console
recovery runbook, a reboot-window runbook, alert rules, an avoidance matrix and
SHA256SUMS.

Residual risk

With rungs 1–7 in place, the corruption can still occur — but it is caught while
the switch is running, and the reboot is aborted. Without them, the residual
risk is a silent time bomb on a device that may be hundreds of kilometres away,
with the only recovery path being a person and a cable.

That is the honest bottom line for a closed boot chain: you cannot patch the
write, so you own the sequencing, the verification and the console.

Next: the README index and the MITIGATION bundle — start with the safe
boot-next runbook, then baseline every switch you own.