gasper icon indicating copy to clipboard operation
gasper copied to clipboard

Fix unlinkat error in make tools and bind mount cleanup

Open izuku-sds opened this issue 1 year ago • 0 comments

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 unlinkat errors during deletion.
  • Solution:
    1. Create bind mounts explicitly to avoid elevated privileges.
    2. During container deletion, first remove all contents inside the working directory, then kill the container.
    3. In DiskCleanup, perform ContainerCleanup before StorageCleanup.

Testing

  • Verified that make tools runs successfully without errors.
  • Ensured that bind mounts and directories are cleaned up correctly.

izuku-sds avatar Dec 07 '24 08:12 izuku-sds