summaryrefslogtreecommitdiffstats
path: root/patches/fuel-agent/0008-bootstrap-Use-gzip-instead-of-xz-compression.patch
blob: 19176c9097bf2bf0896bc53e176ea6904d4409d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Date: Wed, 9 Mar 2016 23:02:17 +0100
Subject: [PATCH] bootstrap: Use gzip instead of xz compression.

bootstrap mksquashfs using qemu-user-static is extremely slow,
taking up to one hour. gzip, on the other hand, is reasonably fast.
According to [1], xz is slower, with not much size gain.

[1] https://jonathancarter.org/2015/04/06/squashfs-performance-testing/
---
 contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap/consts.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap/consts.py b/contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap/consts.py
index d507156..688197d 100644
--- a/contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap/consts.py
+++ b/contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap/consts.py
@@ -24,7 +24,7 @@ COMPRESSED_CONTAINER_FORMAT = "tar.gz"
 UNCOMPRESSED_CONTAINER_FORMAT = "directory"
 ROOTFS = {'name': 'rootfs',
           'mask': 'rootfs',
-          'compress_format': 'xz',
+          'compress_format': 'gzip',
           'uri': 'http://127.0.0.1:8080/bootstraps/{uuid}/root.squashfs',
           'format': 'ext4',
           'container': 'raw'}
@@ -34,7 +34,7 @@ BOOTSTRAP_MODULES = [
      'uri': 'http://127.0.0.1:8080/bootstraps/{uuid}/vmlinuz'},
     {'name': 'initrd',
      'mask': 'initrd',
-     'compress_format': 'xz',
+     'compress_format': 'gzip',
      'uri': 'http://127.0.0.1:8080/bootstraps/{uuid}/initrd.img'},
     ROOTFS
 ]