Skip to content

Keep modpack and native temp off the noexec tmpfs - #350

Merged
athNdev merged 2 commits into
mainfrom
fix/modpack-tmp-dir
Nov 5, 2026
Merged

athNdev merged 2 commits into
mainfrom
fix/modpack-tmp-dir

Conversation

@athNdev

@athNdev athNdev commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • OSS-315: install-modrinth-modpack and native libraries were writing into the Minecraft container's 64 MiB noexec /tmp tmpfs, so larger mrpacks failed with ENOSPC and Netty/c2me could not map their libraries.
  • Point TMPDIR and java.io.tmpdir at /data/.tmp on the world bind, create that directory mode 01777 on the daemon that owns the data, and keep /tmp a small noexec tmpfs. World backups skip .tmp.

The same change fixes OSS-317.

Test plan

  • go test ./internal/docker/ -count=1
  • go test ./internal/scheduler/ -count=1 -run TestDefaultBackupExcludesWorkTemp
  • go vet ./internal/docker/ ./internal/scheduler/
  • Install a modpack larger than 64 MiB (Cobblemon, Homestead, ArdaCraft, or Distant Horizons) and confirm install-modrinth-modpack gets past the download

Made with Cursor

athNdev and others added 2 commits November 5, 2026 17:27
Minecraft installs and native libraries were writing to a 64 MiB noexec /tmp, so larger mrpacks failed with ENOSPC and Netty and c2me could not map their libraries. Point that work at /data/.tmp on the world disk.

Co-authored-by: Cursor <[email protected]>
The one-shot setup container is an API the test daemon does not implement, and chmod 01777 does not set Go's sticky bit.

Co-authored-by: Cursor <[email protected]>
@athNdev
athNdev merged commit 5cc3c76 into main Nov 5, 2026
11 checks passed
@athNdev
athNdev deleted the fix/modpack-tmp-dir branch November 5, 2026 06:54
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