From 50423fd3066778764feb73594f172dc10194e038 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 1 Dec 2025 06:23:36 -0600 Subject: feat(archsetup): implement state tracking for resume capability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enables resuming from where the script left off if interrupted: - State stored in /var/lib/archsetup/state/ as marker files - run_step() wrapper tracks completion, skips completed steps - --status flag shows installation progress - --fresh flag clears state for clean restart - --help flag documents all options - 12 major steps tracked (intro through boot_ux) Example: archsetup --status # check progress archsetup # resume from last step archsetup --fresh # start over 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- TODO.org | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'TODO.org') diff --git a/TODO.org b/TODO.org index 9067d6d..dd86ad2 100644 --- a/TODO.org +++ b/TODO.org @@ -168,8 +168,15 @@ RESOLVED: Added preflight_checks() function that verifies: - pacman available - Running on Arch Linux (/etc/arch-release exists) -*** TODO [#A] Implement state tracking for install progress +*** DONE [#A] Implement state tracking for install progress +CLOSED: [2025-12-01 Sun] Track what completed vs failed mid-run to enable targeted recovery and resume capability +RESOLVED: Implemented file-based state tracking: +- State stored in /var/lib/archsetup/state/ as marker files +- run_step() wrapper skips completed steps on resume +- --status flag shows progress +- --fresh flag clears state for clean restart +- 12 major steps tracked (intro through boot_ux) *** TODO [#A] Fix sleep/suspend on Framework Laptop Critical functionality for laptop use - current battery drain unacceptable -- cgit v1.2.3