testsAndMisc/linux_configuration
Krzysztof kuhy Rudnicki f72455662c Extract the hosts blocker into its own repo
linux_configuration/periodic_background/hosts/ is now
github.com/kuhyx/hosts-blocker, cloned at ~/hosts-blocker. Clears 5 of the 46
directory-depth violations; the remaining 41 are all digital_wellbeing, so
--warn stays on the depth hook until that unit moves too.

History was filtered across ALL FOUR paths the unit has lived at (hosts/,
linux_configuration/hosts/, linux_configuration/scripts/periodic_background/
hosts/, and the current one). Filtering on the current path alone would have
preserved 1 commit out of 51 -- the flatten moved it recently, so a naive
single --path silently truncates the history to the flatten commit and still
looks fine in `git log | head`.

No source line changed: all 15 files are byte-identical to the copies removed
here. install.sh already resolved its lib/ via BASH_SOURCE.

The six callers now resolve the checkout through a new shared helper,
linux_configuration/lib/extracted_repos.sh, which reads the invoking user's
home from SUDO_USER's passwd entry rather than $HOME -- several of these
scripts re-exec under sudo, where $HOME is /root. A missing checkout fails
loudly with a clone instruction; it is never a silent skip, which is the
failure mode that left screen-locker's self-repair dead for five months after
the 2026-05-15 reorg.

The live blocker is untouched: /etc/hosts keeps its chattr +i, and the guards
load their plugins from /usr/local/share/guard-lib-plugins/ (byte-identical by
md5), not from a repo path.

Verified: 25 tests pass from ~/hosts-blocker; shellcheck clean on the helper
and all six callers; sudo resolution prints /home/kuhy/hosts-blocker;
test_setup_dns_blocker.sh passes; report_live_state.sh --check is byte-identical
before and after, so no new stale references.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJrqKERAo5QUeEHWS5Asgp
2026-08-23 20:30:18 +02:00
..
.githooks Flatten i3-configuration and misc/testsAndMisc-bash 2026-08-23 19:02:18 +02:00
.github Prettier-normalize two docs the pre-push hook was already failing on 2026-08-23 19:42:18 +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 Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
dwm Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
features Extract the hosts blocker into its own repo 2026-08-23 20:30:18 +02:00
feedback-appimage Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
fixes Extract the hosts blocker into its own repo 2026-08-23 20:30:18 +02:00
fresh-install Extract the hosts blocker into its own repo 2026-08-23 20:30:18 +02:00
gaming Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
i3 Flatten i3-configuration and misc/testsAndMisc-bash 2026-08-23 19:02:18 +02:00
i3blocks Flatten i3-configuration and misc/testsAndMisc-bash 2026-08-23 19:02:18 +02:00
installers Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
lib Extract the hosts blocker into its own repo 2026-08-23 20:30:18 +02:00
meta Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
misc Flatten i3-configuration and misc/testsAndMisc-bash 2026-08-23 19:02:18 +02:00
periodic_background Extract the hosts blocker into its own repo 2026-08-23 20:30:18 +02:00
tests Point the diagnostics bats suite at the flattened path 2026-08-23 20:08:40 +02:00
utils Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
zsh Split calc-live.zsh: extract the qalc coprocess 2026-08-16 22:12:32 +02:00
.gitignore Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
install_core_system.sh Extract the hosts blocker into its own repo 2026-08-23 20:30:18 +02:00
test_results.log Add 'linux_configuration/' from commit '0762e3d07b90bac9256eb272de10bf9f42878094' 2026-02-06 21:43:26 +01:00