livemedia-creator: Use discard during installation

This could help to keep the disk size down during installation,
if the FS within the VM is also supporting TRIM.

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
This commit is contained in:
Fabian Deutsch 2015-12-01 09:27:48 +01:00 committed by Brian C. Lane
parent f2239d7860
commit 1a653dad7f

View File

@ -141,7 +141,7 @@ class VirtualInstall(object):
args.append(ks) args.append(ks)
disk_opts = "path={0}".format(disk_img) disk_opts = "path={0}".format(disk_img)
disk_opts += ",cache=unsafe" disk_opts += ",cache=unsafe,discard=unmap"
if qcow2: if qcow2:
disk_opts += ",format=qcow2" disk_opts += ",format=qcow2"
else: else: