[FE training-materials-updates] kernel sources download: Improvement when using git offline

Gregory Clement gregory.clement at free-electrons.com
Tue Jun 3 17:49:36 CEST 2014

Repository : git://git.free-electrons.com/training-materials.git

On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=4398d304b986925da5aa938933d9a671bf675b49


commit 4398d304b986925da5aa938933d9a671bf675b49
Author: Gregory CLEMENT <gregory.clement at free-electrons.com>
Date:   Tue Jun 3 17:22:06 2014 +0200

    kernel sources download: Improvement when using git offline
    - Actually only the .git directory is useful. The sources are already
      part of it, so we can removed them from the tar archive and just
      instruct to do a "git checkout" to get the sources.
    - the data are already compressed in the *.pack file using the xz
      compression is very slow for compressing and decompressing for a
      very little gain (862M vs 882M), so let's use gzip instead.
    Signed-off-by: Gregory CLEMENT <gregory.clement at free-electrons.com>


 .../kernel-sources-download.tex                    |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/labs/kernel-sources-download/kernel-sources-download.tex b/labs/kernel-sources-download/kernel-sources-download.tex
index b8f39da..7a9adc9 100644
--- a/labs/kernel-sources-download/kernel-sources-download.tex
+++ b/labs/kernel-sources-download/kernel-sources-download.tex
@@ -33,7 +33,7 @@ send patches, in particular.
 To begin working with the Linux kernel sources, we need to clone its
 reference git tree, the one managed by Linus Torvalds.
-The trouble is you have to download about 1.5 GB of data!
+The trouble is you have to download about 1 GB of data!
 If you are running this command from home, or if you have very fast
 access to the Internet at work (and if you are not 256 participants in the
@@ -58,14 +58,15 @@ git clone http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
 If Internet access is not fast enough and if multiple people have to
 share it, your instructor will give you a USB flash drive with a
-\code{tar.xz} archive of a recently cloned Linux source tree.
+\code{tgz} archive of a recently cloned Linux source tree.
 You will just have to extract this archive in the current directory,
 and then pull the most recent changes over the network:
-tar xf linux-git.tar.xz
+tar xf linux-git.tgz
 cd linux
+git checkout master
 git pull

More information about the training-materials-updates mailing list