1 |
commit: 978c02e6fa04ab7ed1a40003fa0eb4cfce952ca2 |
2 |
Author: Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 27 20:13:28 2013 +0000 |
4 |
Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 27 20:13:28 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=978c02e6 |
7 |
|
8 |
use lbzip2 to unpack the stages |
9 |
|
10 |
Since we already use lbzip2 to compress everthing, |
11 |
it makes a significant performance difference to |
12 |
also unpack the stages using lbzip2. When the stage |
13 |
compression is selectable this should be enhanced to use |
14 |
other decompressors as well (although xz doesn't seem to |
15 |
need a multi-threaded decompressor). |
16 |
|
17 |
--- |
18 |
modules/generic_stage_target.py | 8 ++++---- |
19 |
1 file changed, 4 insertions(+), 4 deletions(-) |
20 |
|
21 |
diff --git a/modules/generic_stage_target.py b/modules/generic_stage_target.py |
22 |
index 31cb025..a9cc68e 100644 |
23 |
--- a/modules/generic_stage_target.py |
24 |
+++ b/modules/generic_stage_target.py |
25 |
@@ -657,7 +657,7 @@ class generic_stage_target(generic_target): |
26 |
unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\ |
27 |
self.settings["chroot_path"] |
28 |
else: |
29 |
- unpack_cmd="tar xpf "+self.settings["source_path"]+" -C "+\ |
30 |
+ unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\ |
31 |
self.settings["chroot_path"] |
32 |
error_msg="Tarball extraction of "+\ |
33 |
self.settings["source_path"]+" to "+\ |
34 |
@@ -672,7 +672,7 @@ class generic_stage_target(generic_target): |
35 |
unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\ |
36 |
self.settings["chroot_path"] |
37 |
else: |
38 |
- unpack_cmd="tar xpf "+self.settings["source_path"]+" -C "+\ |
39 |
+ unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\ |
40 |
self.settings["chroot_path"] |
41 |
error_msg="Tarball extraction of "+self.settings["source_path"]+\ |
42 |
" to "+self.settings["chroot_path"]+" failed." |
43 |
@@ -773,7 +773,7 @@ class generic_stage_target(generic_target): |
44 |
if "bz2" == self.settings["chroot_path"][-3:]: |
45 |
unpack_cmd="tar -I lbzip2 -xpf "+self.settings["snapshot_path"]+" -C "+destdir |
46 |
else: |
47 |
- unpack_cmd="tar xpf "+self.settings["snapshot_path"]+" -C "+destdir |
48 |
+ unpack_cmd="tar -I lbzip2 -xpf "+self.settings["snapshot_path"]+" -C "+destdir |
49 |
unpack_errmsg="Error unpacking snapshot" |
50 |
cleanup_msg="Cleaning up invalid snapshot cache at \n\t"+\ |
51 |
self.settings["snapshot_cache_path"]+\ |
52 |
@@ -793,7 +793,7 @@ class generic_stage_target(generic_target): |
53 |
unpack_cmd="tar -I lbzip2 -xpf "+self.settings["snapshot_path"]+" -C "+\ |
54 |
self.settings["chroot_path"]+"/usr" |
55 |
else: |
56 |
- unpack_cmd="tar xpf "+self.settings["snapshot_path"]+" -C "+\ |
57 |
+ unpack_cmd="tar -I lbzip2 -xpf "+self.settings["snapshot_path"]+" -C "+\ |
58 |
self.settings["chroot_path"]+"/usr" |
59 |
unpack_errmsg="Error unpacking snapshot" |