Files
linux_system_tuning/CHANGELOG.md
mindesbunister 548dc1d0d3 Remove overlay filesystem functionality and add detection/removal capability
- Remove unused overlay filesystem configuration and references
- Remove overlayfs sections from all profile JSON files
- Remove OVERLAY_ENABLED/OVERLAY_PROTECT_CONFIGS from config
- Update documentation to focus on tmpfs optimization
- Add overlay detection and removal functionality for cleanup
- Add remove_overlays() function with safe unmounting
- Add overlay status reporting in final optimization summary
- Add test-overlay-detection.sh for testing detection logic
- Simplify codebase by removing complex unused features
- Focus on proven desktop optimizations (tmpfs, zram, kernel)
2025-09-23 12:35:45 +02:00

2.2 KiB

Changelog

[2025-09-23] - Overlay Filesystem Removal

Removed

  • Overlay filesystem functionality: Removed unused overlay filesystem features
    • Removed OVERLAY_ENABLED and OVERLAY_PROTECT_CONFIGS from configuration
    • Removed overlayfs sections from all profile JSON files
    • Removed overlay references from documentation and scripts
    • Added overlay detection and removal functionality for existing mounts

Added

  • Overlay cleanup functionality: Added ability to detect and remove overlay mounts
    • remove_overlays() function to safely unmount overlay filesystems
    • Automatic cleanup of overlay work/upper directories
    • Removal of overlay entries from /etc/fstab
    • User prompt when overlay mounts are detected

Rationale

  • Overlay filesystems are complex and rarely needed on desktop systems
  • Most users benefit more from tmpfs cache optimization than overlay complexity
  • Simplified codebase by removing unused/incomplete functionality

[2025-09-23] - tmpfs Setup Fix

Fixed

  • one-button-optimizer.sh: Fixed critical issue where tmpfs setup was not working
    • Added missing setup_tmpfs() function that was referenced but not implemented
    • Enhanced tmpfs analysis to actually scan system for cache directories
    • Added intelligent profile recommendation based on RAM size and existing cache data
    • Fixed tmpfs persistence by generating proper fstab entries
    • Updated systemd service to restore tmpfs mounts after reboot

Enhanced

  • tmpfs Analysis: Now scans for actual cacheable data:
    • Browser caches (Chrome, Firefox, Chromium)
    • Package caches (/var/cache/apt)
    • Temporary files
    • Shows actual cache sizes and provides intelligent recommendations

Technical Details

  • Issue: When users selected "yes" for tmpfs setup, nothing happened because the setup_tmpfs function was missing
  • Root Cause: The function was called in main() but never defined
  • Solution: Implemented complete tmpfs setup with intelligent sizing and persistence

Testing

  • Added test script (test-tmpfs-fix.sh) to verify functionality
  • Confirmed syntax validation passes
  • Verified tmpfs analysis logic works correctly

Previous versions

  • Initial implementation with zram, kernel tuning, and basic tmpfs detection