summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/12-initramfs-compress
blob: 8fd5bebc34cfb881ea408170a7376b4e2e325f4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

echo "Configuring compression of the initramfs"

# 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=xz,' "${OPTS_FILE}"