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

3 4
set -e

5 6
echo "Configuring compression of the initramfs"

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

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

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

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