• Stefy Lanza (nextime / spora )'s avatar
    Enhance cleanup script with comprehensive cleanup and root privileges · 2f731f37
    Stefy Lanza (nextime / spora ) authored
    - Added root privilege check (must be run with sudo)
    - Added removal of build logs (build.log, build_retry.log)
    - Added removal of .build directory
    - Added removal of cache directory
    - Added removal of all ISO files (*.iso)
    - Added automatic unmounting of chroot filesystems (dev/pts, dev/shm, proc, sys, etc.)
    - Added force unmount for any remaining mounted filesystems
    - Ensures clean state for subsequent builds
    - Prevents permission issues during cleanup
    2f731f37
cleanup.sh 2.34 KB