Show output from resize2fs, when running it in AppVM (#5)

This commit is contained in:
Marek Marczykowski 2011-03-31 02:40:45 +02:00
parent 6273c42faf
commit ece8cfa9f0

View File

@ -98,7 +98,7 @@ def main():
# resize loop device # resize loop device
retcode = subprocess.check_call(["losetup", "--set-capacity", loop_dev]) retcode = subprocess.check_call(["losetup", "--set-capacity", loop_dev])
retcode = subprocess.check_call([qvm_run_path, "-uroot", vmname, retcode = subprocess.check_call([qvm_run_path, "-uroot", "--pass_io", vmname,
"while [ \"`blockdev --getsize64 /dev/xvdb`\" -lt {0} ]; do sleep 0.2; done; resize2fs /dev/xvdb".format(size_bytes) ]) "while [ \"`blockdev --getsize64 /dev/xvdb`\" -lt {0} ]; do sleep 0.2; done; resize2fs /dev/xvdb".format(size_bytes) ])
else: else:
retcode = subprocess.check_call(["resize2fs", "-f", vm.private_img]) retcode = subprocess.check_call(["resize2fs", "-f", vm.private_img])