fix: reconcile configured APT effect without retroactive acceptance and retain host reboot evidence
Rust development slice / linux (push) Failing after 6s

This commit is contained in:
2026-11-13 20:00:20 +01:00
parent 34d695a778
commit b08734065a
26 changed files with 2006 additions and 36 deletions
+2 -1
View File
@@ -16,7 +16,7 @@ RECIPES = {'apt_native_install':'rmm-apt-fixture-install-1.0','ensure_package':'
PINS = {'1.0':'74036ae81223deab3aae994fd2a2a695af408741777e1ce17dcb4e32f1235867',
'1.1':'ef67c9fe0ba1443fcfe465768e1204763063c369a2a1da04af6027d8a9c00491'}
PLANNING_FIELDS = ('fixture_package','baseline_sha256','sealed_baseline_sha256','status_fingerprint',
'dpkg_updates_empty','pending_triggers_empty','runtime','runtime_sha256',
'dpkg_updates_empty','pending_triggers_empty','host_reboot_required','runtime','runtime_sha256',
'provider_sha256','hook_sha256','apt_config_sha256','prefetch')
@@ -47,6 +47,7 @@ def planning_from_device(device,recovery=False):
missing=[key for key in PLANNING_FIELDS if key not in data]
m.require(not missing,'not_configured:apt_planning_fields_missing:'+','.join(missing))
m.require(data['dpkg_updates_empty'] is True and data['pending_triggers_empty'] is True,'not_configured:dpkg_dirty')
m.require(type(data['host_reboot_required']) is bool,'not_configured:actual_host_reboot_flag_required')
m.require(data['baseline_sha256']==data['sealed_baseline_sha256'] and __import__('re').fullmatch('[a-f0-9]{64}',data['baseline_sha256']),
'not_configured:actual_sealed_baseline_binding')
if 'baseline' in data: