Add firstboot onboarding and prep/check tooling

This commit is contained in:
Aaron
2026-01-02 22:28:57 -05:00
parent ccc97f7912
commit 40b1b43449
20 changed files with 1487 additions and 220 deletions

View File

@@ -22,6 +22,13 @@ API_PACKAGE_DIR = API_DIR / "pikit_api"
BACKUP_ROOT = pathlib.Path("/var/backups/pikit")
TMP_ROOT = pathlib.Path("/var/tmp/pikit-update")
# First-boot state
FIRSTBOOT_DIR = pathlib.Path("/var/lib/pikit/firstboot")
FIRSTBOOT_STATE = FIRSTBOOT_DIR / "state.json"
FIRSTBOOT_LOG = FIRSTBOOT_DIR / "firstboot.log"
FIRSTBOOT_ERROR = FIRSTBOOT_DIR / "firstboot.error"
FIRSTBOOT_DONE = FIRSTBOOT_DIR / "firstboot.done"
# Apt / unattended-upgrades
APT_AUTO_CFG = pathlib.Path("/etc/apt/apt.conf.d/20auto-upgrades")
APT_UA_BASE = pathlib.Path("/etc/apt/apt.conf.d/50unattended-upgrades")