lorax/src/pylorax
David Shea c13aa84f02 Make no-virt generated images sparser
At the end of disk image installs, use fstrim on the generated filesystem to
discard any blocks that were allocated during the install and are now unused.
This will allow tools such as qemu-img to create images that do not include
deleted data.

For raw disk images that do not go through qemu-img, use fallocate --dig-holes
to create sparse holes in place of the unused blocks.

(cherry picked from commit 9717b3fd98)

Related: rhbz#1628645
Related: rhbz#1628646
Related: rhbz#1628647
Related: rhbz#1628648
2018-10-05 11:27:04 -04:00
..
api Write a rootpw line if no root customizations in the blueprint 2018-10-03 08:29:33 -07:00
__init__.py Add prefixdevname support to the boot.iso 2018-09-17 16:19:07 -07:00
base.py Fix DataHolder to handle hasattr 2016-05-04 10:34:02 -07:00
buildstamp.py Write the --variant string to .buildstamp as 'Variant=' 2018-01-17 09:38:16 -08:00
cmdline.py Add --dracut-arg support to lorax 2018-06-07 09:01:42 -07:00
creator.py Pass the --tmp value into run_creator and cleanup after a crash 2018-05-17 10:34:35 -07:00
decorators.py Convert pylorax to python3 2015-05-15 17:11:20 -07:00
discinfo.py Convert pylorax to python3 2015-05-15 17:11:20 -07:00
dnfhelper.py DNF 3: progress callback constants moved to dnf.transaction 2018-06-28 16:20:26 -07:00
executils.py pylorax: proc.returncode can be None 2016-03-09 16:41:11 -08:00
imgutils.py Move core of livemedia-creator into pylorax.creator 2018-05-17 10:34:34 -07:00
installer.py Make no-virt generated images sparser 2018-10-05 11:27:04 -04:00
ltmpl.py templates: Stop using gconfset 2018-05-24 09:13:05 -07:00
monitor.py livemedia-creator: Check for packaging failures in the logs (#1374809) 2016-09-21 09:00:49 -07:00
mount.py Add ppc64le kernel path 2016-09-08 12:12:07 -07:00
output.py Convert pylorax to python3 2015-05-15 17:11:20 -07:00
sysutils.py Ignore a pylint warning about UnquotingConfigParser get args 2018-09-04 11:13:20 -07:00
treebuilder.py lorax: Only run depmod on the installed kernels 2018-09-25 09:17:01 -07:00
treeinfo.py Additional python3 changes 2015-05-15 17:11:20 -07:00