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:
parent
f2239d7860
commit
1a653dad7f
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user