--- /dev/null
+# 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
fcopy /usr/share/initramfs-tools/scripts/init-top/grml
fcopy /etc/initramfs-tools/hooks/000-udev-shutup
+fcopy /etc/initramfs-tools/conf.d/xz-compress
FILE=$(ls -1 $target/boot/vmlinuz-* 2>/dev/null| sort -r | head -1)
KERNELVERSION=$(echo "${FILE##$target/boot/vmlinuz-}")