Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Configure 2 GiB swap by default during first-boot cloud-init, before Docker/mise setup and application work. This protects small devboxes from short-lived build/browser memory spikes without relying on an agent remembering a manual swap command.
swap_size_mib = 2048by default; configurable non-negative integer,0skips setup./var/lib/devbox/swapfilewith0600permissions, activate it, read back activation and persist one/etc/fstabentry.The setting applies when provisioning (including from a snapshot), not to an already running server. Changing it does not resize existing swap, and zero never removes/disables existing swap.
Verification — all remote
uv run --frozen pytest -q: 289 passed.mkswapso retries work; rejectnoautofstab entries rather than claiming reboot persistence.shellify()verification: forced helper failure exits 37 and skips the next command.uv build --wheel: pass; verified both helper modules and the cloud-init YAML are included.cloud-init schemaon Ubuntu 24.04./etc/fstabunchanged.Not tested: new Hetzner VM provisioning, actual reboot or provider snapshot round-trip. No extra server was created and the existing Draw preview/server was not rebooted. No controller-host test/build execution.
See verification details.