1 |
commit: cf83c489c031e1ea5741060d8fd3117a9715f0f4 |
2 |
Author: Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 27 20:25:03 2013 +0000 |
4 |
Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 27 20:25:03 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=cf83c489 |
7 |
|
8 |
proper lbzip2 decompression of stages |
9 |
|
10 |
use lbzip2 to decompress stages ONLY, snapshots can be bz2 or xz. |
11 |
This provides me a 6x increase and likely more if you have fast IO |
12 |
|
13 |
--- |
14 |
modules/generic_stage_target.py | 4 ++-- |
15 |
1 file changed, 2 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/modules/generic_stage_target.py b/modules/generic_stage_target.py |
18 |
index 31cb025..8f3c05a 100644 |
19 |
--- a/modules/generic_stage_target.py |
20 |
+++ b/modules/generic_stage_target.py |
21 |
@@ -657,7 +657,7 @@ class generic_stage_target(generic_target): |
22 |
unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\ |
23 |
self.settings["chroot_path"] |
24 |
else: |
25 |
- unpack_cmd="tar xpf "+self.settings["source_path"]+" -C "+\ |
26 |
+ unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\ |
27 |
self.settings["chroot_path"] |
28 |
error_msg="Tarball extraction of "+\ |
29 |
self.settings["source_path"]+" to "+\ |
30 |
@@ -672,7 +672,7 @@ class generic_stage_target(generic_target): |
31 |
unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\ |
32 |
self.settings["chroot_path"] |
33 |
else: |
34 |
- unpack_cmd="tar xpf "+self.settings["source_path"]+" -C "+\ |
35 |
+ unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\ |
36 |
self.settings["chroot_path"] |
37 |
error_msg="Tarball extraction of "+self.settings["source_path"]+\ |
38 |
" to "+self.settings["chroot_path"]+" failed." |