Skip to content

fix(autorun): actually load default.env and honor RESULTS_DIR (FR-082) - #48

Open
Avicennasis wants to merge 1 commit into
mainfrom
fix/fr-082-results-dir
Open

Avicennasis wants to merge 1 commit into
mainfrom
fix/fr-082-results-dir

Conversation

@Avicennasis

Copy link
Copy Markdown
Member

Closes #48110. autorun/lib.sh documented loading config/default.env but never read it, so its tunables were ignored. It now sources the baked config from /run/sysrescue-config/default.env (or /default.env); RESULTS_DIR is empty-by-default so setup_results_dir() still prefers the writable FAT32 partition, but an explicitly configured RESULTS_DIR is honored, with a /run/results fallback if it can't be created. bash -n + shellcheck clean. ⚠ Not run on real hardware (no SystemRescue boot here).

lib.sh documented loading config/default.env but never read it, so the
baked-in tunables (STRESS_DURATION_SEC, MEMTESTER_PCT, RESULTS_DIR) were
ignored. Source it from /run/sysrescue-config (falling back to /default.env),
make RESULTS_DIR empty-by-default so autorun0's writable-partition logic
applies, and have setup_results_dir honor an explicitly configured
RESULTS_DIR with a /run/results fallback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant