testsAndMisc/linux_configuration
Krzysztof kuhy Rudnicki 70189149b2
Some checks are pending
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Waiting to run
Python tests / test (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
Add fix_tmp_space.sh: 30G /tmp, /var/disktmp
/tmp is the stock tmp.mount tmpfs (size=50%, usrquota) and systemd caps
each user at 80% of it at login; a heavy build hit that cap with EDQUOT.

fix_tmp_space.sh writes a tmp.mount drop-in with the stock options and
size=30G, reloads systemd once and remounts /tmp live (never an unmount:
the X11 sockets live there). tmp_quota.py raises each logged-in user's
cap live to 80% of 30G through quotactl_fd, since systemd sets it only
at login. A sparse 64G ext4 image is loop-mounted at /var/disktmp (1777)
through one fstab line; tmpfiles.d empties it at boot and ages it 10d.

The fstab line adds x-systemd.before=systemd-tmpfiles-setup.service:
nofail drops the ordering, and in vmbox tmpfiles started 22 ms before
the mount finished, so the boot-time emptying could miss the image.

Failure paths:
- /tmp not a tmpfs: fail-closed, nothing written.
- another fstab line owns /var/disktmp: fail-closed.
- image exists but is not ext4: fail-closed, never reformatted.
- quotactl or remount fails: fail-closed, non-zero exit.
- image fails to mount at boot: fail-open on purpose. nofail keeps the
  boot going and the 1777 directory underneath takes writes uncapped,
  instead of every command that uses it failing. --verify-only exits 1.

Passed in vmbox, not verified on the host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWW9EDj5WPLpxuWXv29
2026-11-22 11:55:06 +01:00
..
.githooks Skip .claude/worktrees in jscpd scan 2026-11-18 21:32:33 +01:00
.github pacman wrapper: drop list-file checks and docs after list retirement 2026-10-17 18:46:17 +02:00
boot_recovery Cap extensionless scripts, and split the one that was hiding 2026-08-23 19:13:40 +02:00
C/atop_agg atop_agg: split atop_agg.c 478 -> 204 + state + emit 2026-08-17 10:49:46 +02:00
diagnostics Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
docs pacman wrapper: drop list-file checks and docs after list retirement 2026-10-17 18:46:17 +02:00
dwm Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 20:50:19 +02:00
features Keep WARP window open across firewall reload 2026-11-20 11:41:23 +01:00
feedback-appimage Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
fixes Add fix_tmp_space.sh: 30G /tmp, /var/disktmp 2026-11-22 11:55:06 +01:00
fresh-install Stop ignoring steam in fresh-install pacman.conf 2026-11-16 08:59:50 +01:00
gaming Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 20:50:19 +02:00
i3 Start xfce4-notifyd only once X answers 2026-11-18 21:33:55 +01:00
i3blocks i3bar: hide gaming blocks, gaming off 2026-11-16 16:11:38 +01:00
installers helium: unlock the keyring through secretstorage; anchor the running-browser check 2026-09-20 18:29:49 +02:00
lib lan blocker: gateway mode, WARP drop with a Mon/Fri 09:00-15:30 window 2026-10-25 09:52:40 +01:00
meta Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
misc Grade against 3.14 too, not just run on it 2026-08-29 11:50:39 +02:00
periodic_background Fix periodic setup: source repo lib first 2026-11-20 08:12:40 +01:00
scripts Repoint MCP paths; parallelise mutation gate 2026-11-10 14:25:05 +01:00
tests Add fix_tmp_space.sh: 30G /tmp, /var/disktmp 2026-11-22 11:55:06 +01:00
utils Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 20:50:19 +02:00
zsh Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 20:50:19 +02:00
.gitignore Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
install_core_system.sh Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 20:50:19 +02:00
test_results.log Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 20:50:19 +02:00