[Fedora-livecd-list] Making xz compression the default patch

Bruno Wolff III bruno at wolff.to
Mon Jan 24 03:31:13 UTC 2011


The patch is pretty simple, but I'm also looking for feedback on the change
itself. The downside to having it the default (for F15+), is that
occassionally someone might get burnt using xz compression while building
an iso for an older version of Fedora. I think the upside of using xz is
enough that we really should make it the default. (130 MB savings for the
Desktop spin.) But I wanted to run this by other people before making that
change. Note that Fedora can use xz for its spins (and is already doing
so for the nightly composes) without making xz the default compression.
-------------- next part --------------
diff --git a/docs/livecd-creator.pod b/docs/livecd-creator.pod
index 63ea88b..1827728 100644
--- a/docs/livecd-creator.pod
+++ b/docs/livecd-creator.pod
@@ -43,9 +43,10 @@ Defines the file system label. The default is based on the configuration name.
 =item --compression-type=COMPRESSOR
 
 Specify a compressor recognized by mksquashfs.
-gzip is the default and should work with all kernels.
+xz is the default and works with 2.6.38 and later kernels.
+gzip works with all kernels.
 lzo works with 2.6.36 and later kernels.
-xz works with 2.6.38 and later kernels. lzma will only work with custom kernels.
+lzma will only work with custom kernels.
 If gzip is used, the -comp option is not passed to mksquashfs to allow the use of older versions of mksquashfs.
 
 =item --releasever=VER
diff --git a/tools/livecd-creator b/tools/livecd-creator
index 85d74eb..75949c1 100755
--- a/tools/livecd-creator
+++ b/tools/livecd-creator
@@ -48,8 +48,8 @@ def parse_options(args):
     imgopt.add_option("", "--image-type", type="string", dest="image_type",
                       help=optparse.SUPPRESS_HELP)
     imgopt.add_option("", "--compression-type", type="string", dest="compress_type",
-                      help="Compression type recognized by mksquashfs (default gzip, xz needs a 2.6.38+ kernel, lzo needs a 2.6.36+ kernel, lzma needs custom kernel)",
-                      default="gzip")
+                      help="Compression type recognized by mksquashfs (default xz needs a 2.6.38+ kernel, gzip works with all kernels, lzo needs a 2.6.36+ kernel, lzma needs custom kernel)",
+                      default="xz")
     imgopt.add_option("", "--releasever", type="string", dest="releasever",
                       default=None,
                       help="Value to substitute for $releasever in kickstart repo urls")


More information about the livecd mailing list