]> Git Repo - linux.git/commitdiff
Don't set the INITRD_COMPRESS environment variable automatically
authorLinus Torvalds <[email protected]>
Sat, 21 Dec 2013 00:52:45 +0000 (16:52 -0800)
committerLinus Torvalds <[email protected]>
Sat, 21 Dec 2013 00:52:45 +0000 (16:52 -0800)
Commit 1bf49dd4be0b ("./Makefile: export initial ramdisk compression
config option") started setting the INITRD_COMPRESS environment variable
depending on which decompression models the kernel had available.

That is completely broken.

For example, we by default have CONFIG_RD_LZ4 enabled, and are able to
decompress such an initrd, but the user tools to *create* such an initrd
may not be availble.  So trying to tell dracut to generate an
lz4-compressed image just because we can decode such an image is
completely inappropriate.

Cc: J P <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Jan Beulich <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Makefile

index 89cee8625651ae75809a610ad7d08f1644268325..82ea7dd9fc98b2b8b0ef42f90cf1066bd71770e4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -738,7 +738,9 @@ INITRD_COMPRESS-$(CONFIG_RD_LZMA)  := lzma
 INITRD_COMPRESS-$(CONFIG_RD_XZ)    := xz
 INITRD_COMPRESS-$(CONFIG_RD_LZO)   := lzo
 INITRD_COMPRESS-$(CONFIG_RD_LZ4)   := lz4
-export INITRD_COMPRESS := $(INITRD_COMPRESS-y)
+# do not export INITRD_COMPRESS, since we didn't actually
+# choose a sane default compression above.
+# export INITRD_COMPRESS := $(INITRD_COMPRESS-y)
 
 ifdef CONFIG_MODULE_SIG_ALL
 MODSECKEY = ./signing_key.priv
This page took 0.057935 seconds and 4 git commands to generate.