mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-11 14:07:49 +01:00
Two levels of pure taxonomy carrying no information, and a 2-directory
cap leaves no room for them. Categories now sit directly under
linux_configuration/: features, fixes, utils, misc, fresh-install,
installers, diagnostics, gaming, boot_recovery, periodic_background, lib,
meta, tests. A script's own lib/ and tests/ are exempt from the cap, so
those stay put.
Depth violations 248 -> 139; roughly 40 of the remainder are inside
digital_wellbeing and hosts, deferred until the guard-lib repoint.
The moves are the easy half. What breaks is every path that counted
levels, and three classes of it had to be found by resolving paths rather
than reading diffs:
- 52 relative `source` lines for lib/common.sh and lib/android.sh. The
correct prefix differs per file: 40 were ../../ and 12 were ../../../,
so a blanket replace would have fixed one set and broken the other.
- REPO_ROOT in 7 fixes/lib/tests harnesses and setup_syncyomi_guard.sh,
each walking up four levels from a directory now two levels shallower.
This caused a real regression -- the fixes suite went red with
"log_warn: command not found" -- caught by running it and comparing
against the pre-move baseline worktree.
- conftest.py's sys.path entries, which took the pytest gate down with
14 collection errors, and the `# shellcheck source=` directives, which
took shellcheck down with SC1091.
16 symlinks in $HOME broke, including the entire i3blocks bar. All
repointed, and cpu_monitor/memory/disk/time/volume were run to confirm
they emit real output rather than merely resolving.
Verified: 1798 tests pass at 100% coverage, 8 of 9 lib/tests suites pass
(the ninth needs the coverage jail, identically at baseline), pre-commit
is clean, and the two untracked secret configs are still ignored after
their gitignore paths changed.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJrqKERAo5QUeEHWS5Asgp
82 lines
3.3 KiB
Bash
82 lines
3.3 KiB
Bash
# vim:set ft=sh:
|
|
# MODULES
|
|
# The following modules are loaded before any boot hooks are
|
|
# run. Advanced users may wish to specify all system modules
|
|
# in this array. For instance:
|
|
# MODULES=(usbhid xhci_hcd)
|
|
MODULES=()
|
|
|
|
# BINARIES
|
|
# This setting includes any additional binaries a given user may
|
|
# wish into the CPIO image. This is run last, so it may be used to
|
|
# override the actual binaries included by a given hook
|
|
# BINARIES are dependency parsed, so you may safely ignore libraries
|
|
BINARIES=()
|
|
|
|
# FILES
|
|
# This setting is similar to BINARIES above, however, files are added
|
|
# as-is and are not parsed in any way. This is useful for config files.
|
|
FILES=()
|
|
|
|
# HOOKS
|
|
# This is the most important setting in this file. The HOOKS control the
|
|
# modules and scripts added to the image, and what happens at boot time.
|
|
# Order is important, and it is recommended that you do not change the
|
|
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
|
|
# help on a given hook.
|
|
# 'base' is _required_ unless you know precisely what you are doing.
|
|
# 'udev' is _required_ in order to automatically load modules
|
|
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
|
|
# Examples:
|
|
## This setup specifies all modules in the MODULES setting above.
|
|
## No RAID, lvm2, or encrypted root is needed.
|
|
# HOOKS=(base)
|
|
#
|
|
## This setup will autodetect all modules for your system and should
|
|
## work as a sane default
|
|
# HOOKS=(base udev autodetect microcode modconf block filesystems fsck)
|
|
#
|
|
## This setup will generate a 'full' image which supports most systems.
|
|
## No autodetection is done.
|
|
# HOOKS=(base udev microcode modconf block filesystems fsck)
|
|
#
|
|
## This setup assembles a mdadm array with an encrypted root file system.
|
|
## Note: See 'mkinitcpio -H mdadm_udev' for more information on RAID devices.
|
|
# HOOKS=(base udev microcode modconf keyboard keymap consolefont block mdadm_udev encrypt filesystems fsck)
|
|
#
|
|
## This setup loads an lvm2 volume group.
|
|
# HOOKS=(base udev microcode modconf block lvm2 filesystems fsck)
|
|
#
|
|
## This will create a systemd based initramfs which loads an encrypted root filesystem.
|
|
# HOOKS=(base systemd autodetect microcode modconf kms keyboard sd-vconsole sd-encrypt block filesystems fsck)
|
|
#
|
|
## NOTE: If you have /usr on a separate partition, you MUST include the
|
|
# usr and fsck hooks.
|
|
HOOKS=(base udev autodetect microcode modconf keyboard keymap consolefont block filesystems fsck)
|
|
|
|
# COMPRESSION
|
|
# Use this to compress the initramfs image. By default, zstd compression
|
|
# is used for Linux ≥ 5.9 and gzip compression is used for Linux < 5.9.
|
|
# Use 'cat' to create an uncompressed image.
|
|
#COMPRESSION="zstd"
|
|
#COMPRESSION="gzip"
|
|
#COMPRESSION="bzip2"
|
|
#COMPRESSION="lzma"
|
|
#COMPRESSION="xz"
|
|
#COMPRESSION="lzop"
|
|
#COMPRESSION="lz4"
|
|
|
|
# COMPRESSION_OPTIONS
|
|
# Additional options for the compressor
|
|
#COMPRESSION_OPTIONS=()
|
|
|
|
# MODULES_DECOMPRESS
|
|
# Decompress loadable kernel modules and their firmware during initramfs
|
|
# creation. Switch (yes/no).
|
|
# Enable to allow further decreasing image size when using high compression
|
|
# (e.g. xz -9e or zstd --long --ultra -22) at the expense of increased RAM usage
|
|
# at early boot.
|
|
# Note that any compressed files will be placed in the uncompressed early CPIO
|
|
# to avoid double compression.
|
|
#MODULES_DECOMPRESS="no"
|