summaryrefslogtreecommitdiffstats
path: root/mkinitcpio
diff options
context:
space:
mode:
Diffstat (limited to 'mkinitcpio')
-rwxr-xr-xmkinitcpio3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 0503006..0b0beeb 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -32,6 +32,7 @@ SKIPHOOKS=""
PRESETDIR="mkinitcpio.d"
QUIET="y"
SHOW_AUTOMODS="n"
+COMPRESSION="gzip"
# Add /{,usr}/sbin to path
# works around undetected problems like in #8448
@@ -275,7 +276,7 @@ fi
status=0
if [ -n "${GENIMG}" ]; then
echo -n ":: Generating image '${GENIMG}'..."
- if ! /sbin/gen_init_cpio ${FILELIST} | gzip -9 > "${GENIMG}"; then
+ if ! /sbin/gen_init_cpio ${FILELIST} | ${COMPRESSION} -9 > "${GENIMG}"; then
echo "FAILED"
status=1
else