From e4fe8d5f57ad3a5b2e64d541476e65b00d1a945c Mon Sep 17 00:00:00 2001 From: Dongjin Kim Date: Mon, 7 Oct 2024 14:53:25 +0900 Subject: [PATCH] fixup: Use 'gzip' to compress method for 'initramfs' Signed-off-by: Dongjin Kim Change-Id: I6dfc1bda3cf312f325801b3b84bcf000298e3325 --- fixups/S90-initramfs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 fixups/S90-initramfs diff --git a/fixups/S90-initramfs b/fixups/S90-initramfs new file mode 100755 index 0000000..a7536ec --- /dev/null +++ b/fixups/S90-initramfs @@ -0,0 +1,12 @@ +#!/bin/sh + +CONF=/etc/initramfs-tools/initramfs.conf + +if [ -f $CONF ]; then + . $CONF + + if [ "$COMPRESS" != "gzip" ]; then + sed -i "s/COMPRESS=.*/COMPRESS=gzip/g" $CONF + /usr/sbin/update-initramfs -u + fi +fi