12-initramfs-compress 220 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#!/bin/sh

# Compress the initramfs using a more size-wise efficient algorithm.

OPTS_FILE='/etc/initramfs-tools/initramfs.conf'

[ -f "${OPTS_FILE}" ] || exit 11

sed -i'' 's,^COMPRESS=.*,COMPRESS=lzma,' "${OPTS_FILE}"