diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-20 15:38:36 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-20 15:38:36 -0500 |
| commit | aef074f711566159d200021f7133f7713f2aaf8d (patch) | |
| tree | 1c3ff1863005a145d39b7ca3d14fb0cd2dd6d53c /scripts/games.sh | |
| parent | f5c0bf068f34b195d6e47ebff8a4837dc4073874 (diff) | |
| download | archsetup-aef074f711566159d200021f7133f7713f2aaf8d.tar.gz archsetup-aef074f711566159d200021f7133f7713f2aaf8d.zip | |
fix(installer): harden the disk-space pre-flight gate
`df /` wraps to two lines when the root device name is long -- a device-mapper or live-ISO root -- so `awk 'NR==2 {print $4}'` read the wrapped device line, found an empty Available field, and aborted a valid install with "Insufficient disk space." `df -P` forces POSIX single-line output.
The gate now compares available KB against the minimum in KB rather than truncating to GB first, which rejected a disk sitting just under a whole-GB boundary. Non-numeric df output falls back to zero so a malformed read aborts loudly instead of crashing the arithmetic test.
Extracted the logic into check_disk_space so it can be exercised directly.
Diffstat (limited to 'scripts/games.sh')
0 files changed, 0 insertions, 0 deletions
