initramfs-tools: use xz with -8 and --check=crc32.
[grml-live.git] / etc / grml / fai / config / files / etc / initramfs-tools / conf.d / xz-compress / GRMLBASE
diff --git a/etc/grml/fai/config/files/etc/initramfs-tools/conf.d/xz-compress/GRMLBASE b/etc/grml/fai/config/files/etc/initramfs-tools/conf.d/xz-compress/GRMLBASE
new file mode 100644 (file)
index 0000000..1500f6f
--- /dev/null
@@ -0,0 +1,10 @@
+# This file is installed by grml-live in 10-build-initramfs.
+# It's purpose is to use XZ compression when building initramfs.
+
+# this is a workaround to pass custom options to the xz compression
+xz() {
+    command xz -8 --check=crc32
+}
+
+# enable XZ compression, reducing initramfs size from ~17MB to ~12MB
+compress=xz