Skip to content

Feature Request - Cleanup Packer Cache ISO Files

Description

The packer cache directory contains old ISO files that accumulate over time and take up significant disk space. These files appear to be from previous builds and could benefit from periodic cleanup to prevent excessive disk usage.

Current State

Location: /opt/ludus/users/developer/packer/packer_cache

Contents:

  • 1 ISO files ranging from ~400MB to ~6.9GB

Suggested Improvements

  1. Implement an automatic cleanup mechanism for ISO files that:

    • Removes .iso files older than X days (configurable)
    • Removes orphaned .lock files
    • Maintains a configurable maximum cache size
  2. Add a manual cleanup command to the Ludus CLI for:

    • Force cleaning all cache contents
    • Removing specific aged ISOs
    • Clearing abandoned .lock files
  3. Document cleanup options and best practices for cache management

Benefits

  • Reduced disk usage
  • Improved performance by preventing cache bloat
  • Better resource management for long-running systems

Environment Details

  • Platform: PVE Lab
  • User: developer
  • Path: /opt/ludus/users/developer/packer/packer_cache

Thanks