Accepting the prepared image after reboot: EFI, directories and a new reference
Checking EFI and approved postboot records, capturing separate image acceptance and verifying it without changing original journals.
After checking the kernel and package history, two questions remain: does EFI match the approved state, and do automation directories contain only permitted records? This step joins those checks and creates a separate postboot acceptance reference for the prepared image.
What we reproduced on the fixture
We used a fresh isolated Debian 13 VM. We completed initial UEFI and APT preparation, approved package installation, preboot reference capture, GRUB menu application and one approved reboot. A fresh independent serial console confirmed the same machine with a different boot ID. Original approvals and journals were retained.
Manually checking EFI and pending-reboot flags
We read selected lines from the standard efibootmgr tool:
efibootmgr | sed -n '/^BootCurrent:/p;/^BootOrder:/p;/^BootNext:/p'
BootCurrent: 0002
BootOrder: 0002,0000,0001,0003,0004,0005,0006
BootCurrent identifies the entry used for the current boot; BootOrder holds the saved attempt order. BootNext selects a separate one-time entry. This fixture policy requires BootNext to be absent. The entry identifiers shown belong only to this VM.
Variable semantics are documented by UEFI; command examples are in Debian Manpages. UEFI Boot Manager; efibootmgr(8).
We separately check the two runtime files that can signal a required restart:
if test ! -e /run/reboot-required && test ! -e /run/reboot-required.pkgs; then
printf 'No reboot-required flags\n'
fi
No reboot-required flags
These are actual postboot responses. The manual commands expose current facts. To connect them to the original approvals, the CLI also checks the selected Boot variables as binary values, their attributes and the unchanged preparation completion records.
Capturing separate image acceptance
All original files remain inputs. The new result uses a different private file on the operator machine. The following is a template: replace the angle-bracket values with your paths and SHA256 digests, removing the brackets. Secrets remain in private access files.
deploy-cli host image preparation postboot-capture \
--env-file <PRIVATE_ROOT_ENV> \
--request-file <ORIGINAL_ACCESS_REQUEST> \
--current-request-file <NEW_CONSOLE_ACCESS_REQUEST> \
--preboot-reference-file <ORIGINAL_PREBOOT_REFERENCE> \
--preboot-reference-sha256 <PREBOOT_SHA256> \
--menu-plan-file <ORIGINAL_MENU_PLAN> --menu-plan-sha256 <MENU_SHA256> \
--reboot-plan-file <ORIGINAL_REBOOT_PLAN> --reboot-plan-sha256 <REBOOT_SHA256> \
--reference-file <POSTBOOT_REFERENCE> \
--approve-local-write
The reader rechecks the kernel, original initialization, selected versions and actual package chain. It retains the original EFI completion record and checks the current boot separately against the new console evidence. Approved BootOrder, BootCurrent, selected Boot entries and machine identity must match. Other NVRAM variables are outside this comparison.
Directory admission permits only the original preparation and two exactly verified boot records: the menu and reboot. The original preparation projection must remain unchanged. All 14 current diagnostic checks must pass, including the approved running kernel, dpkg state with no unfinished operations, no failed units, required tools and absence of the future administrator.
The reboot record stays on the server. The verified_reboot_state check confirms that retained record and the absence of new reboot-required flags. The reader neither deletes the journal nor reports it as absent.
Selected fields from the actual capture response:
{
"status": "passed",
"image_accepted": true,
"efi_revalidated": true,
"namespace_verified": true,
"boot_checkpoint_retained": true,
"whole_host_ready": false,
"host_write_performed": false,
"local_write_performed": true
}
local_write_performed=true records creation of the new reference on the operator machine. host_write_performed=false describes the server-side read: the command does not modify EFI, packages, journals or service state.
Verifying the exact retained reference
We take the new file SHA256 from the capture response. Verification removes local-write approval and supplies that digest:
deploy-cli host image preparation postboot-verify \
--env-file <PRIVATE_ROOT_ENV> \
--request-file <ORIGINAL_ACCESS_REQUEST> \
--current-request-file <NEW_CONSOLE_ACCESS_REQUEST> \
--preboot-reference-file <ORIGINAL_PREBOOT_REFERENCE> \
--preboot-reference-sha256 <PREBOOT_SHA256> \
--menu-plan-file <ORIGINAL_MENU_PLAN> --menu-plan-sha256 <MENU_SHA256> \
--reboot-plan-file <ORIGINAL_REBOOT_PLAN> --reboot-plan-sha256 <REBOOT_SHA256> \
--reference-file <POSTBOOT_REFERENCE> \
--reference-sha256 <POSTBOOT_SHA256>
{
"status": "passed",
"image_accepted": true,
"efi_revalidated": true,
"namespace_verified": true,
"boot_checkpoint_retained": true,
"whole_host_ready": false,
"host_write_performed": false,
"local_write_performed": false
}
Fresh verification reads the server again and compares the complete current result with the retained reference. On the fixture, all nine selected Boot files matched before and after reboot, and the original 24 preparation entries were retained. With the boot journals added, 27 selected entries stayed unchanged through capture, verify and refusal checks.
Refusal checks
A wrong menu-plan digest, old console evidence and an edited copy of accepted reference data were refused. We separately added controlled foreign files to the CLI directory and EFI journal. In both cases capture refused, created no new acceptance file and left the controlled file and original records in place. Selected response fields for a foreign file:
{
"status": "failed",
"host_write_performed": false,
"local_write_performed": false
}
The fixture-owned controlled files were removed separately after the checks. Ordinary preboot verification using the old console evidence also refused after reboot. Original approvals were not rewritten or turned into permission to repeat installation or restart.
The completed scope
image_accepted=true accepts this prepared image against explicit checks. whole_host_ready remains false: this step did not configure the administrator, application services, sites or complete wizard. The next task is to connect the new reference to the wizard while retaining approved access and the original package history.
The illustration shows a genuine terminal summarizing saved results. It is a labeled summary rather than raw server command output. Installation, EFI writes and reboot were not repeated during capture.