Skip to content

feat: add fixed /tmp mount flag#26

Merged
simonbeaudoin0935 merged 2 commits into
mainfrom
feat/tmp-host-dir-mount
Jun 12, 2026
Merged

feat: add fixed /tmp mount flag#26
simonbeaudoin0935 merged 2 commits into
mainfrom
feat/tmp-host-dir-mount

Conversation

@simonbeaudoin0935

@simonbeaudoin0935 simonbeaudoin0935 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace the path-based option with a binary flag: --mount-host-tmp
  • when enabled, bind-mount host /tmp to container /tmp
  • reject --mount-host-tmp in --rebuild mode
  • update README docs and examples to explain why/when to use it

Why

Large package builds can exceed the container's default temporary storage
capacity. This flag gives the build access to host-backed /tmp space without
requiring a user-selected path.

Validation

  • python3 -m py_compile docker_deb_build.py
  • python3 docker_deb_build.py --help
  • python3 docker_deb_build.py --rebuild --mount-host-tmp --no-update-check
    • expected: --mount-host-tmp cannot be used with --rebuild mode

Add --tmp-host-dir to docker_deb_build.py and mount the
provided host directory to /tmp inside the container.

This avoids failures on large package builds where the default
container /tmp can be memory-backed and too small.

The option is build-mode only and now includes path validation,
and README documents why and when to use it.

Signed-off-by: Simon Beaudoin <sbeaudoi@qti.qualcomm.com>
Replace the previous fixed /mnt flag with a fixed /tmp flag:
--mount-host-tmp.

When set, docker_deb_build.py bind-mounts host /tmp to container
/tmp.

This keeps the mount behavior binary and removes user-selected path
input.

README and usage examples are updated to match this behavior.

Signed-off-by: Simon Beaudoin <sbeaudoi@qti.qualcomm.com>
@simonbeaudoin0935 simonbeaudoin0935 changed the title feat: add host-backed tmp mount option feat: add fixed /tmp mount flag Jun 11, 2026
@simonbeaudoin0935 simonbeaudoin0935 merged commit 108cdd3 into main Jun 12, 2026
10 checks passed
@simonbeaudoin0935 simonbeaudoin0935 deleted the feat/tmp-host-dir-mount branch June 12, 2026 03:11
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.

3 participants