proper lbzip2 decompression of stages
authorRick Farina (Zero_Chaos) <zerochaos@gentoo.org>
Mon, 27 May 2013 20:25:03 +0000 (16:25 -0400)
committerRick Farina (Zero_Chaos) <zerochaos@gentoo.org>
Mon, 27 May 2013 20:25:03 +0000 (16:25 -0400)
use lbzip2 to decompress stages ONLY, snapshots can be bz2 or xz.
This provides me a 6x increase and likely more if you have fast IO

modules/generic_stage_target.py

index 31cb025e6745a3858acacdf583d6df7dbaaf330c..8f3c05a33a9dc9d30fc9fee403bf2b155f8b89cc 100644 (file)
@@ -657,7 +657,7 @@ class generic_stage_target(generic_target):
                                        unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
                                                self.settings["chroot_path"]
                                else:
-                                       unpack_cmd="tar xpf "+self.settings["source_path"]+" -C "+\
+                                       unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
                                                self.settings["chroot_path"]
                                error_msg="Tarball extraction of "+\
                                        self.settings["source_path"]+" to "+\
@@ -672,7 +672,7 @@ class generic_stage_target(generic_target):
                                unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
                                        self.settings["chroot_path"]
                        else:
-                               unpack_cmd="tar xpf "+self.settings["source_path"]+" -C "+\
+                               unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
                                        self.settings["chroot_path"]
                        error_msg="Tarball extraction of "+self.settings["source_path"]+\
                                " to "+self.settings["chroot_path"]+" failed."