don't resize volatile root - #639
hippalectryon-0 wants to merge 1 commit into
Conversation
2430fb2 to
7757209
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #639 +/- ##
==========================================
+ Coverage 69.89% 70.30% +0.40%
==========================================
Files 3 3
Lines 495 495
==========================================
+ Hits 346 348 +2
+ Misses 149 147 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Check for
Yes... I understand why skipping may be useful sometimes, but it creates inconsistency. For example if user wants just bigger /var/tmp, it isn't obvious that they need to also start the template after such change. Maybe at least add a message in GUI settings that resize will be applied only the next time the VM is started (if it isn't running at that time)? Another, rather obscure idea, would be to mark it as updates available, which also kinda prompts for starting such template, but it's ugly (especially since we don't have more info about available updates, so can't put real reason there). |
Fixes QubesOS/qubes-issues#10503
If we resized a TemplateVM but never booted it, then boot an AppVM that depends on the template,
resize-rootfs-if-needed.shwill resize the volatile root volume through CoW, which is very slow and likely unexpected.This skips resizing root volumes for AppVMs and DispVMs.
Note: I'm not sure this is the best way to do that and would appreciate feedback - for instance if there was away to explicitly check whether the root volume is volatile rather than hardcoding VM classes..
Note: from an User Experience pt of view this is still iffy - less technical users will not expect to have to run the TemplateVM once to apply the resizing changes - but it's a separate issue.