mirror of
https://github.com/dikeckaan/mu300-linux.git
synced 2026-12-06 08:03:36 +00:00
xt_HL/xt_hl, xt_TCPMSS/xt_tcpmss, xt_DSCP/xt_dscp and xt_RATEEST/xt_rateest collapsed to one file each in every mainline bundle before v2026.10.23.1 (built on macOS's case-insensitive APFS). - upstream/case-sensitive.sh: case_sensitive DIR probes DIR with two files differing only in case; make-bundle.sh, build-modules.sh and make-release.sh refuse a directory that ignores case - release scripts' mktemp honour TMPDIR - audit-bundle.py compares modules.in-tree with the directory listing; make-release.sh's audit wants every modules.in-tree name (and the TTL/MSS pairs) in each mainline bundle - vendor-overlay.py reads --kernel-bundle from the tarball; install.sh/install.ps1 pass the tarball, so an install from macOS or Windows no longer loses one module of each pair Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
22 lines
1.5 KiB
Bash
22 lines
1.5 KiB
Bash
# Sourced (sh, bash, busybox sh): case_sensitive DIR - status 0 when DIR keeps two names that differ only in case
|
|
# apart, else a message on stderr and status 1. A kernel's module tree has such names (mainline: xt_HL.ko and
|
|
# xt_hl.ko, xt_TCPMSS.ko and xt_tcpmss.ko, xt_DSCP.ko and xt_dscp.ko, xt_RATEEST.ko and xt_rateest.ko); on a file
|
|
# system that ignores case (macOS's default APFS, Windows' NTFS) each pair becomes one file, under one name with the
|
|
# other's contents, and the bundle loses a module without a word (docs/FINDINGS.md 212). Asked of the directory
|
|
# itself, by making two such files in it: a volume's name says nothing about a directory mounted from elsewhere.
|
|
case_sensitive() {
|
|
_cs_d=$(mktemp -d "$1/.mu300-case.XXXXXX" 2>/dev/null) || { echo "cannot make a directory in $1" >&2; return 1; }
|
|
: > "$_cs_d/mu300-case" && : > "$_cs_d/MU300-CASE" && _cs_n=$(ls "$_cs_d" | wc -l) || _cs_n=0
|
|
rm -rf "$_cs_d"
|
|
[ "$_cs_n" -eq 2 ] && return 0
|
|
cat >&2 <<MSG
|
|
$1 is on a file system that ignores case: kernel modules whose names differ only in case (xt_HL.ko and xt_hl.ko)
|
|
would become one file there. Work on a case-sensitive volume instead, for example on macOS an APFS case-sensitive
|
|
sparse image:
|
|
hdiutil create -size 100g -type SPARSE -fs 'Case-sensitive APFS' -volname mu300 ~/mu300.sparseimage
|
|
hdiutil attach ~/mu300.sparseimage # then clone or copy the tree to /Volumes/mu300 and run it from there
|
|
(docs/FINDINGS.md 212)
|
|
MSG
|
|
return 1
|
|
}
|