diskimage-builder/diskimage_builder/lib
Andreas Florath fa6c731132 Move fstrim to block device layer
The call to fstrim in disk-image-create is currently useless, because
at the time this is called, the file systems were already umounted by
the block device layer.

The current implementation of the block-device mount plugin does not
call fstrim at all: resulting in larger image sizes.

This patch removes the useless fstrim call from the disk-image-create
script and moves this into the block-device mount.py.

The resulting image might be much smaller.  Example: Ubuntu Xenial
with some elements; once with and once without this patch:

-rw-r--r-- 1 dib dib 475661824 Sep 16 06:43 ubuntu-xenial-without-fstrim.qcow2
-rw-r--r-- 1 dib dib 364249088 Sep 16 09:30 ubuntu-xenial-with-fstrim.qcow2

Change-Id: I4e21ae50c5e6e26dc9f50f004ed6413132c81047
Signed-off-by: Andreas Florath <andreas@florath.net>
2017-09-28 17:48:59 +10:00
..
common-defaults Support for Cloud Images on ppc64le for rhel7 and centos7 2017-06-29 15:44:26 +10:00
common-functions Increase timeout for removal 2017-08-11 16:29:26 +02:00
dib-run-parts Don't provide dib-run-parts 2017-04-05 13:11:20 +10:00
die Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
disk-image-create Move fstrim to block device layer 2017-09-28 17:48:59 +10:00
img-defaults Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
img-functions Move fstrim to block device layer 2017-09-28 17:48:59 +10:00
ramdisk-defaults Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
ramdisk-functions Remove use of 'which'. 2017-05-19 12:43:36 -07:00
ramdisk-image-create Move diskimage-image-create to an entry point 2016-11-02 05:12:11 +00:00