12-initramfs-compress 275 B

1234567891011121314
  1. #!/bin/sh
  2. set -e
  3. echo "Configuring compression of the initramfs"
  4. # Compress the initramfs using a more size-wise efficient algorithm.
  5. OPTS_FILE='/etc/initramfs-tools/initramfs.conf'
  6. [ -f "${OPTS_FILE}" ] || exit 11
  7. sed -i'' 's,^COMPRESS=.*,COMPRESS=xz,' "${OPTS_FILE}"