Skip to content

feat(machine): add --rootfs-persist and --rootfs-size flags#4733

Merged
dangra merged 1 commit intomasterfrom
feat/rootfs-persist-size
Feb 9, 2026
Merged

feat(machine): add --rootfs-persist and --rootfs-size flags#4733
dangra merged 1 commit intomasterfrom
feat/rootfs-persist-size

Conversation

@dangra
Copy link
Member

@dangra dangra commented Feb 6, 2026

Summary

  • Add --rootfs-persist flag to control root filesystem persistence across restarts (options: never, always, restart)
  • Add --rootfs-size flag to set root filesystem size in GB via overlayfs
  • Uses the new MachineConfig.Rootfs field from fly-go v0.2.3 (replaces the deprecated MachineGuest.PersistRootfs)
  • Flags are available on fly machine run, fly machine create, and fly machine update

Test plan

  • Run fly machine run <image> --rootfs-persist always --rootfs-size 10 and verify the machine config includes the rootfs settings
  • Run fly machine update <id> --rootfs-persist restart and verify persistence is updated
  • Verify invalid values for --rootfs-persist produce a clear error
  • Verify --rootfs-size 0 or negative values produce a clear error

…filesystem configuration

Expose the new MachineConfig.Rootfs options from fly-go v0.2.3, allowing users
to persist the root filesystem across restarts and configure its size via
`fly machine run`, `fly machine create`, and `fly machine update`.
@dangra dangra merged commit f4ae2e3 into master Feb 9, 2026
23 of 24 checks passed
@dangra dangra deleted the feat/rootfs-persist-size branch February 9, 2026 14:48
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