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).\
resize_root_img(size, allow_start=allow_start)
if not allow_start:
raise QubesException("VM start required to complete the "
"operation, but not allowed. Either run the "
"operation again allowing VM start this "
"time, or run resize2fs in the VM manually.")
raise QubesException("To complete the resize operation start the "
"qube. You may need to run resize2fs manually"
"in the qube .")
self.start(start_guid=False)
self.run("resize2fs /dev/mapper/dmroot", user="root", wait=True,
gui=False)