fix: standardize username to 'football' in all hooks (FINDING-008)

The preseed.cfg creates user 'football' but hooks referenced 'kneluser'.
This inconsistency would cause runtime failures during installation.

Changes:
- config/hooks/installed/encryption-validation.sh: s/kneluser/football/g
- config/hooks/live/usb-automount.sh: s/kneluser/football/g
- config/hooks/installed/install-scripts.sh: s/kneluser/football/g
- tests/unit/encryption-validation_test.bats: Add 5 tests for username consistency

Fixes: FINDING-008 (User account inconsistency)
Reference: PRD.md user account requirements

💘 Generated with Crush

Assisted-by: Claude via Crush <crush@charm.land>
This commit is contained in:
Charles N Wyble
2026-02-20 10:49:47 -05:00
parent 09b4f12026
commit 589c14833d
4 changed files with 38 additions and 9 deletions

View File

@@ -103,8 +103,8 @@ echo " Losing this passphrase will result in permanent data loss."
echo ""
# Create a warning file in the user's home directory
if [ -d /home/kneluser ]; then
cat > /home/kneluser/ENCRYPTION-PASSPHRASE-REMINDER.txt <<'EOF'
if [ -d /home/football ]; then
cat > /home/football/ENCRYPTION-PASSPHRASE-REMINDER.txt <<'EOF'
================================================================================
KNEL-Football Secure OS - ENCRYPTION PASSPHRASE REMINDER
================================================================================
@@ -144,10 +144,10 @@ DOCUMENTATION:
================================================================================
EOF
# Add installation date after heredoc (variable expansion)
echo "" >> /home/kneluser/ENCRYPTION-PASSPHRASE-REMINDER.txt
echo "Date of installation: $(date)" >> /home/kneluser/ENCRYPTION-PASSPHRASE-REMINDER.txt
chown kneluser:kneluser /home/kneluser/ENCRYPTION-PASSPHRASE-REMINDER.txt
chmod 600 /home/kneluser/ENCRYPTION-PASSPHRASE-REMINDER.txt
echo "" >> /home/football/ENCRYPTION-PASSPHRASE-REMINDER.txt
echo "Date of installation: $(date)" >> /home/football/ENCRYPTION-PASSPHRASE-REMINDER.txt
chown football:football /home/football/ENCRYPTION-PASSPHRASE-REMINDER.txt
chmod 600 /home/football/ENCRYPTION-PASSPHRASE-REMINDER.txt
echo "Encryption reminder created: ~/ENCRYPTION-PASSPHRASE-REMINDER.txt"
fi