Skip to content

Commit 3e4e0f0

Browse files
pebolletorvalds
authored andcommitted
initramfs: remove "compression mode" choice
Commit 9ba4bcb ("initramfs: read CONFIG_RD_ variables for initramfs compression") removed the users of the various INITRAMFS_COMPRESSION_* Kconfig symbols. So since v3.13 the entire "Built-in initramfs compression mode" choice is a set of knobs connected to nothing. The entire choice can safely be removed. Signed-off-by: Paul Bolle <[email protected]> Cc: P J P <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 04541a2 commit 3e4e0f0

File tree

1 file changed

+0
-77
lines changed

1 file changed

+0
-77
lines changed

usr/Kconfig

-77
Original file line numberDiff line numberDiff line change
@@ -98,80 +98,3 @@ config RD_LZ4
9898
help
9999
Support loading of a LZ4 encoded initial ramdisk or cpio buffer
100100
If unsure, say N.
101-
102-
choice
103-
prompt "Built-in initramfs compression mode" if INITRAMFS_SOURCE!=""
104-
help
105-
This option decides by which algorithm the builtin initramfs
106-
will be compressed. Several compression algorithms are
107-
available, which differ in efficiency, compression and
108-
decompression speed. Compression speed is only relevant
109-
when building a kernel. Decompression speed is relevant at
110-
each boot.
111-
112-
If you have any problems with bzip2 or LZMA compressed
113-
initramfs, mail me (Alain Knaff) <[email protected]>.
114-
115-
High compression options are mostly useful for users who are
116-
low on RAM, since it reduces the memory consumption during
117-
boot.
118-
119-
If in doubt, select 'gzip'
120-
121-
config INITRAMFS_COMPRESSION_NONE
122-
bool "None"
123-
help
124-
Do not compress the built-in initramfs at all. This may
125-
sound wasteful in space, but, you should be aware that the
126-
built-in initramfs will be compressed at a later stage
127-
anyways along with the rest of the kernel, on those
128-
architectures that support this.
129-
However, not compressing the initramfs may lead to slightly
130-
higher memory consumption during a short time at boot, while
131-
both the cpio image and the unpacked filesystem image will
132-
be present in memory simultaneously
133-
134-
config INITRAMFS_COMPRESSION_GZIP
135-
bool "Gzip"
136-
depends on RD_GZIP
137-
help
138-
The old and tried gzip compression. It provides a good balance
139-
between compression ratio and decompression speed.
140-
141-
config INITRAMFS_COMPRESSION_BZIP2
142-
bool "Bzip2"
143-
depends on RD_BZIP2
144-
help
145-
Its compression ratio and speed is intermediate.
146-
Decompression speed is slowest among the choices. The initramfs
147-
size is about 10% smaller with bzip2, in comparison to gzip.
148-
Bzip2 uses a large amount of memory. For modern kernels you
149-
will need at least 8MB RAM or more for booting.
150-
151-
config INITRAMFS_COMPRESSION_LZMA
152-
bool "LZMA"
153-
depends on RD_LZMA
154-
help
155-
This algorithm's compression ratio is best.
156-
Decompression speed is between the other choices.
157-
Compression is slowest. The initramfs size is about 33%
158-
smaller with LZMA in comparison to gzip.
159-
160-
config INITRAMFS_COMPRESSION_XZ
161-
bool "XZ"
162-
depends on RD_XZ
163-
help
164-
XZ uses the LZMA2 algorithm. The initramfs size is about 30%
165-
smaller with XZ in comparison to gzip. Decompression speed
166-
is better than that of bzip2 but worse than gzip and LZO.
167-
Compression is slow.
168-
169-
config INITRAMFS_COMPRESSION_LZO
170-
bool "LZO"
171-
depends on RD_LZO
172-
help
173-
Its compression ratio is the poorest among the choices. The kernel
174-
size is about 10% bigger than gzip; however its speed
175-
(both compression and decompression) is the fastest.
176-
177-
endchoice

0 commit comments

Comments
 (0)