Verifying package history across the first reboot

Connecting four package records to the original reboot approval and independent new-console evidence. Verifying dpkg, the kernel and the retained record through the administrator without repeating installation.

A protected history chain spanning a transition between server states.

Package history now contains four records: the original index refresh, kernel installation, a new index refresh and base utilities. The server rebooted between the second and third records. Verifying the whole chain requires an explicit explanation of that boundary: the running kernel and boot identifier changed.

The reboot retains its own original approval

On a fresh isolated Debian 13 VM, we completed initial preparation, approved cloud-kernel installation, menu configuration and one controlled reboot. Independent serial-console evidence confirmed a new boot on the same machine. The original plans and server-side reboot record remain retained.

We checked the running kernel with the standard command. The actual fixture response:

uname -r
6.12.113+deb13-cloud-amd64

After administrator setup, root SSH is closed. The root profile is admitted locally to verify the original approvals. Server reads use the selected administrator key and password-required sudo, with a current-boot check on that same SSH execution.

Connecting all four package records

The private input file references the original initialization, index, kernel and reboot approvals, the two later utility approvals and all four retained package records. Each reference has an exact fingerprint. The reader cannot omit the start of history or substitute another predecessor.

The verifier runs under package locks. It reads the chain from genesis to the current head and checks approved archives and retained dpkg status snapshots. The dpkg bytes after one record must match those before the next.

At the reboot boundary, we separately match the old and new console evidence, original reboot approval and retained reboot record. The earlier state must contain the old running kernel; the later state must contain the approved new kernel. This boundary permits only boot and kernel changes and clearance of a reboot-required flag. APT configuration, indexes, dpkg and other package-state fields cannot silently change there.

Running the reader and inspecting its response

We run the separate read command with explicit private files. It accepts no installation, journal repair or new reboot approval. Variables below stand for operator-selected files and their fingerprints:

deploy-cli host setup preparation-lineage-read \
  --root-env-file "$ORIGINAL_ROOT_ENV" \
  --administrator-env-file "$ADMIN_ENV" \
  --request-file "$ORIGINAL_REQUEST" \
  --current-request-file "$CURRENT_REQUEST" \
  --inputs-file "$LINEAGE_INPUTS" \
  --inputs-sha256 "$LINEAGE_INPUTS_SHA256"

The actual successful response:

{
  "schema_version": 1,
  "status": "passed",
  "package_nodes": 4,
  "reboot_boundary_verified": true,
  "original_initialization_retained": true,
  "root_ssh_dispatched": false,
  "host_write_performed": false,
  "local_write_performed": false,
  "whole_host_ready": false
}

Tracing this invocation recorded three administrator SSH launches and zero root launches. Original initialization checks bracketed the read. The retained reboot record and current boot facts were checked under the same package locks. The reader created or changed no server or local files.

The retained reboot record and the temporary flag have different roles

After boot, we checked that the temporary reboot-required flags were absent. The command and its actual result:

if test ! -e /run/reboot-required &&
   test ! -e /run/reboot-required.pkgs; then
  printf 'No reboot-required flags\n'
fi
No reboot-required flags

The retained server-side reboot record remains in place. It records which action was approved and executed. There is no need to delete it to obtain an empty journal. The absence of temporary flags alone does not prove the correct kernel, machine or complete package chain.

We separately tested a pending package record on the fixture. The reader refused without repair. Selected response fields:

{
  "status": "failed",
  "root_ssh_dispatched": false,
  "host_write_performed": false,
  "local_write_performed": false
}

The four package records and first reboot transition can now be verified together. This provides the foundation for service-history and full-wizard integration; the response keeps whole_host_ready false. This run changed neither the training VPS nor production.

The frame below shows a genuine terminal displaying a labeled summary of saved results. It is not raw command output. Capture repeated no installation or reboot.

Complete package chain across the first reboot
  1. Platform Engineering Booting the cloud kernel over root SSH: plan, reboot and a new console
  2. Platform Engineering Accepting the prepared image after reboot: EFI, directories and a new reference
  3. Platform Engineering Reading original preparation through the administrator after closing root SSH
  4. Platform Engineering Continuing package history: utilities after initial preparation
  5. Platform Engineering Server preparation history after another reboot