summaryrefslogtreecommitdiffstats
path: root/images
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-01-20 19:12:15 +0000
committerThierry Vignaud <tv@mageia.org>2012-01-20 19:12:15 +0000
commit377b046e58babae17aa0cc2fa09b95d0e101dc4d (patch)
tree6bb9262af46d3c8b46139c2c555201fa4364f1b7 /images
parenta401a56c2b62781b093d6e63c9ba132d51d99c0b (diff)
downloaddrakx-backup-do-not-use-377b046e58babae17aa0cc2fa09b95d0e101dc4d.tar
drakx-backup-do-not-use-377b046e58babae17aa0cc2fa09b95d0e101dc4d.tar.gz
drakx-backup-do-not-use-377b046e58babae17aa0cc2fa09b95d0e101dc4d.tar.bz2
drakx-backup-do-not-use-377b046e58babae17aa0cc2fa09b95d0e101dc4d.tar.xz
drakx-backup-do-not-use-377b046e58babae17aa0cc2fa09b95d0e101dc4d.zip
smaller stage1: compress initrd with XZ instead of gzip
Diffstat (limited to 'images')
-rw-r--r--images/NEWS3
-rwxr-xr-ximages/make_boot_img2
2 files changed, 4 insertions, 1 deletions
diff --git a/images/NEWS b/images/NEWS
index 91ebb958e..3d4b7636d 100644
--- a/images/NEWS
+++ b/images/NEWS
@@ -1,3 +1,6 @@
+- smaller stage1:
+ o compress initrd with XZ instead of gzip
+
Version 1.61 - 19 January 2012 by Thierry Vignaud
- smaller stage1: remove busybox if not in debug mode
diff --git a/images/make_boot_img b/images/make_boot_img
index 36aa99389..b3385a95b 100755
--- a/images/make_boot_img
+++ b/images/make_boot_img
@@ -217,7 +217,7 @@ fi
my $devs = sprintf "ls /dev/{%s}", join(',', qw(console fb0 fd0 loop3 mem null ppp ptmx ptyp0 ram3 random tty[0-7] ttyp0 ttyS0 urandom));
- _ "(cd $tmp_initrd; (find . ; $devs) | cpio -o -c --quiet) | gzip -9 > $img";
+ _ "(cd $tmp_initrd; (find . ; $devs) | cpio -o -c --quiet) | xz --check=crc32 --lzma2=dict=512KiB > $img";
_ "rm -rf $tmp_initrd";
}