Fix resizing root volume

Use "system storage" value from the window, not "private storage"...

Reported by @0spinboson
Fixes QubesOS/qubes-issues#3143
This commit is contained in:
Marek Marczykowski-Górecki 2017-10-08 16:57:08 +02:00
parent 058b813690
commit 0c5a2b1dcc
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -375,7 +375,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
sys_size = self.root_resize.value() sys_size = self.root_resize.value()
if self.root_img_size != sys_size: if self.root_img_size != sys_size:
try: try:
self.vm.volumes['root'].resize(priv_size * 1024**2) self.vm.volumes['root'].resize(sys_size * 1024**2)
self.anything_changed = True self.anything_changed = True
except Exception as ex: except Exception as ex:
msg.append(str(ex)) msg.append(str(ex))