Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unlinkat error in make tools and bind mount cleanup #270

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

izuku-sds
Copy link

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.

Modules installed using go in /tmp had elevated privileges,
causing unlinkat errors when deleting them. Changed permissions
before removal to avoid errors and ensure make tools runs
smoothly.
**Error Reason**: Elevated privileges on bind mounts caused
unlinkat errors during deletion.

**Fixes**:
1. Explicitly create bind mounts 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant