12-initramfs-compress 226 Bytes
Newer Older
1 2
#!/bin/sh

3 4
set -e

5 6 7 8 9 10
# Compress the initramfs using a more size-wise efficient algorithm.

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

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

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