Merge "Rebase after "Bugfix Broadcast Group"."
[armband.git] / patches / fuel-agent / 0008-bootstrap-Use-gzip-instead-of-xz-compression.patch
1 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2 Date: Wed, 9 Mar 2016 23:02:17 +0100
3 Subject: [PATCH] bootstrap: Use gzip instead of xz compression.
4
5 bootstrap mksquashfs using qemu-user-static is extremely slow,
6 taking up to one hour. gzip, on the other hand, is reasonably fast.
7 According to [1], xz is slower, with not much size gain.
8
9 [1] https://jonathancarter.org/2015/04/06/squashfs-performance-testing/
10 ---
11  contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap/consts.py | 4 ++--
12  1 file changed, 2 insertions(+), 2 deletions(-)
13
14 diff --git a/contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap/consts.py b/contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap/consts.py
15 index d507156..688197d 100644
16 --- a/contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap/consts.py
17 +++ b/contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap/consts.py
18 @@ -24,7 +24,7 @@ COMPRESSED_CONTAINER_FORMAT = "tar.gz"
19  UNCOMPRESSED_CONTAINER_FORMAT = "directory"
20  ROOTFS = {'name': 'rootfs',
21            'mask': 'rootfs',
22 -          'compress_format': 'xz',
23 +          'compress_format': 'gzip',
24            'uri': 'http://127.0.0.1:8080/bootstraps/{uuid}/root.squashfs',
25            'format': 'ext4',
26            'container': 'raw'}
27 @@ -34,7 +34,7 @@ BOOTSTRAP_MODULES = [
28       'uri': 'http://127.0.0.1:8080/bootstraps/{uuid}/vmlinuz'},
29      {'name': 'initrd',
30       'mask': 'initrd',
31 -     'compress_format': 'xz',
32 +     'compress_format': 'gzip',
33       'uri': 'http://127.0.0.1:8080/bootstraps/{uuid}/initrd.img'},
34      ROOTFS
35  ]