CLI utility installation after original preparation

Continuing original package history through the administrator: foundation verification, signed indexes and 19 new archives. Separately approved stages and verification without repeating installation.

Sequential utility-installation stages, protected records and a verification point.

After kernel preparation, the first reboot and administrator creation, the server already contains completed work. We now combine its verification and base utility installation into a dedicated CLI workflow. Root SSH is already disabled at this stage.

Verify the foundation first

The private profile selects current administrator access, the original request and retained preparation approvals. These bind original initialization, two real package records and the first reboot. Original root credentials admit historical approvals locally; the CLI does not use them to connect to the server.

Continuation explicitly allows only new packages with append_only=true. Reinitialization is disabled with initialize_locks=false. Planning verifies the current foundation and writes a local read approval without installing packages.

deploy-cli host setup prepared-utilities plan \
  --profile-file "$PRIVATE_PROFILE" \
  --plan-file "$SETUP_PLAN"

One run with separately approved stages

Execution has three stages: foundation verification, signed index refresh and utility installation. The foundation read does not count as an attempted server write. Each later stage first creates its lower plan, then freshly verifies the required complete history before invoking the original writer.

deploy-cli host setup prepared-utilities apply \
  --plan-file "$SETUP_PLAN" \
  --plan-sha256 "$SETUP_PLAN_SHA256" \
  --approve-local-write --approve-privileges

The fixed selection is acl, ca-certificates, curl, gnupg, gpgv, nftables, openssl, python3, python3-apt, sudo and wireguard-tools. Suitable installed versions remain in place. The workflow refuses any package replacement before installation. The existing package mechanism validates signatures and the exact archive closure.

On a fresh isolated Debian VM, execution completed all three stages. The following fields are selected from the actual command JSON response; digest fields and the remaining response are omitted. Utility readiness does not imply that the whole server or its sites are ready.

{
  "status": "passed",
  "completed_stages": 3,
  "host_write_attempted": true,
  "host_write_performed": true,
  "prerequisites_ready": true,
  "runtime_ready": false,
  "whole_host_ready": false
}

History continues

After index refresh, the CLI reads the actual new head and verifies three package records. A nonempty installation brings the count to four. The original two records and first reboot evidence remain part of verification. The practical run added 19 new archives without replacing installed packages.

The empty-install contract retains three records and an unchanged head. A successful no-op invocation has a separate local coordinator record without inventing a fourth transaction. This practical run exercises the nonempty installation.

Verification does not repeat installation

deploy-cli host setup prepared-utilities verify \
  --plan-file "$SETUP_PLAN" \
  --plan-sha256 "$SETUP_PLAN_SHA256" \
  --completion-sha256 "$COMPLETION_SHA256"

With an independently retained completion_sha256, the CLI rechecks current history and selected packages. Repeated apply with the same accepted completion digest also only reads state. These are selected fields from its actual response:

{
  "status": "passed",
  "completed_stages": 3,
  "local_write_attempted": false,
  "host_write_attempted": false,
  "host_write_performed": false,
  "prerequisites_ready": true
}

Repeated apply without the completion digest is refused. An incorrect original initialization pin and a pending record also stop the workflow. Interrupted installation or an unknown outcome retains state for inspection without invoking the writer again. Runtime services and the complete wizard will adopt this continuation separately.

The frame below is a genuine terminal displaying a summary of saved results, rather than raw command output. Capture repeated no installation or reboot.

Utility installation after original preparation
  1. Platform Engineering Accepting the prepared image after reboot: EFI, directories and a new reference
  2. Platform Engineering Continuing package history: utilities after initial preparation
  3. Platform Engineering How the CLI verifies a completed package operation
  4. Platform Engineering Checking the original server foundation before utilities
  5. Platform Engineering Waiting for SSH before continuing server setup