Clarify warning message on resizing. Closes QubesOS/qubes-issues#1875

This commit is contained in:
unman 2017-04-22 01:44:20 +01:00
parent 2ec65e5956
commit 8ac28d0737
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C

View File

@ -61,10 +61,9 @@ class QubesResizableVmWithResize2fs(QubesResizableVm):
super(QubesResizableVmWithResize2fs, self).\ super(QubesResizableVmWithResize2fs, self).\
resize_root_img(size, allow_start=allow_start) resize_root_img(size, allow_start=allow_start)
if not allow_start: if not allow_start:
raise QubesException("VM start required to complete the " raise QubesException("To complete the resize operation start the "
"operation, but not allowed. Either run the " "qube. You may need to run resize2fs manually"
"operation again allowing VM start this " "in the qube .")
"time, or run resize2fs in the VM manually.")
self.start(start_guid=False) self.start(start_guid=False)
self.run("resize2fs /dev/mapper/dmroot", user="root", wait=True, self.run("resize2fs /dev/mapper/dmroot", user="root", wait=True,
gui=False) gui=False)