gasper
gasper copied to clipboard
Fix unlinkat error in make tools and bind mount cleanup
Summary
This pull request addresses the unlinkat error encountered while running make tools and during bind mount cleanup.
Details
- Issue: Elevated privileges on bind mounts caused
unlinkaterrors during deletion. - Solution:
- Create bind mounts explicitly to avoid elevated privileges.
- During container deletion, first remove all contents inside the working directory, then kill the container.
- In DiskCleanup, perform ContainerCleanup before StorageCleanup.
Testing
- Verified that
make toolsruns successfully without errors. - Ensured that bind mounts and directories are cleaned up correctly.