Packages after reboot: checking versions and original history

Checking the planned cloud kernel, selected versions and two actual package operations against the unchanged preboot reference.

Protected state compartments and a verification card beside a marked kernel.

Successfully booting a kernel does not yet establish whether the approved package versions and original installation history survived. We check them after reboot by comparing current facts with an unchanged preparation reference retained before the restart.

The fixture preparation

We used a fresh isolated Debian 13 VM. Preparation covered the approved UEFI order, APT initialization, signed index acquisition and a fixed package selection for the cloud kernel. The complete plan contained three archives: efibootmgr, the specific cloud-kernel image and its metapackage. mokutil was already installed.

We checked repository reachability before any APT transaction. The reachability check for deb.debian.org failed in this environment, so the fresh fixture used the HTTPS endpoints ftp.debian.org/debian and security.debian.org/debian-security. Suites, components and Signed-By using the Debian archive keyring were retained. TLS and signature verification remained enabled; no unknown operation was retried.

Debian documents the APT source format and Signed-By setting.

Before reboot we retained a preparation reference containing the exact original plans, initialization proof, installed-version projection and two actual package-history records: index acquisition followed by installation. We then applied a visible GRUB menu, requested the approved reboot once and used a fresh independent serial console to confirm the same machine with a different boot ID.

Manually checking the kernel and packages

This command shows the currently running kernel:

uname -r
6.12.113+deb13-cloud-amd64

We separately read the versions of the three selected packages:

dpkg-query -W -f='${binary:Package} ${Version}\n' \
  efibootmgr linux-image-cloud-amd64 mokutil
efibootmgr 18-2
linux-image-cloud-amd64 6.12.113-1
mokutil 0.7.2-1

These are actual postboot VM responses. The uname string and package version use different formats: one identifies the running kernel, the other the Debian package version. They support a manual check; the CLI verifies their connection to the original plan and installation records.

Checking against the unchanged preparation reference

The command receives the original access request, fresh current-console evidence, the original preparation reference and the original reboot plan. This is a template: replace the angle-bracket values with your paths and SHA256 digests, removing the brackets. Passwords and private keys are not passed as argument values.

deploy-cli host image preparation packages-postboot \
  --env-file <PRIVATE_ROOT_ENV> \
  --request-file <ORIGINAL_ACCESS_REQUEST> \
  --current-request-file <NEW_CONSOLE_ACCESS_REQUEST> \
  --reference-file <ORIGINAL_PREBOOT_REFERENCE> \
  --reference-sha256 <ORIGINAL_REFERENCE_SHA256> \
  --reboot-plan-file <ORIGINAL_REBOOT_PLAN> \
  --reboot-plan-sha256 <ORIGINAL_REBOOT_SHA256>

The CLI checks the planned kernel in the new boot and the original initialization. It then reads the actual two-record package-history path, verifies the selected installed versions including dependencies from the approved plan and reads the path again. Both history references and the version projection must match the preboot reference. Additional initialization and boot-proof reads bracket the check.

Original plans are used for comparison. The current connection is checked separately against the new console evidence. The command does not execute refresh, install or reboot, and does not create a replacement reference.

The actual result

{
  "schema_version": 1,
  "status": "passed",
  "boot_verified": true,
  "initialization_verified": true,
  "selected_packages_verified": true,
  "package_genesis_verified": true,
  "original_reference_retained": true,
  "host_write_performed": false,
  "local_write_performed": false,
  "efi_revalidated": false,
  "image_accepted": false,
  "whole_host_ready": false
}

The check passed. All 24 original preparation entries were retained; adding the boot journals produced 27 selected files and directories. Their hashes, inodes, modes, owners and mtime matched before and after the postboot read and negative checks. Original local files and approved plans also remained unchanged.

Testing refusals

Separate copies of local inputs tested a wrong reference SHA256, a changed expected version projection and a changed package-history reference. Original files and server records were not edited. The changed reference produced these selected response fields:

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

Old console evidence and a changed access selection were also refused. Ordinary verification of the original preboot reference refused after reboot: the new reader provides a separate historical check rather than automatically extending old authority. Local contract tests also cover installed-version drift, a chain changing between reads and rejection of writer phases.

What image acceptance still needs

The result verifies the kernel, original initialization, selected versions and their actual original history. Exact postboot EFI-state verification and admission of the permitted postboot directory contents remain the next step. Therefore efi_revalidated, image_accepted and whole_host_ready are false. No administrator was created and the full wizard was not run.

Below is a genuine terminal summarizing saved results from the isolated VM. It is a labeled summary rather than raw server command output. Installation and reboot were not repeated during capture.

Summary of package-history verification after reboot
  1. Platform Engineering Preparing signed packages and a cloud kernel over root SSH
  2. Platform Engineering Recording image preparation: EFI and packages in one reference
  3. Platform Engineering Booting the cloud kernel over root SSH: plan, reboot and a new console
  4. Platform Engineering Verifying initial APT initialization after a restart
  5. Platform Engineering Accepting the prepared image after reboot: EFI, directories and a new reference