Page MenuHomeVyOS Platform

Automatically resize the root partition if the drive has extra space
Closed, ResolvedPublicENHANCEMENT


When VyOS is running in a VM, then there's no question whether it should use the entire drive space given to it: it always should.

Ideally, resizing a VM drive should also automatically resize the root partition inside the VM. Now the user is forced to do that core manually.

However, we can check on boot if the "physical" drive is larger than the partition, and run a script to resize it.


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Improvement (missing useful functionality)

Event Timeline

syncer triaged this task as High priority.
syncer changed the subtype of this task from "Task" to "Enhancement".
syncer added a subscriber: UnicronNL.
unity signed these changes with MFA.Nov 12 2021, 8:34 AM
unity changed the task status from Open to In progress.
This comment was removed by unity.

PRs 1069 and 1070 will be merged

syncer added a subscriber: syncer.
unity changed the task status from In progress to Needs testing.Nov 22 2021, 7:26 PM

I've tested root-partition-auto-resize on GCP, AWS and Azure. It was found that disk extension on Azure brakes GPT table, so I added the fix in this PR .