Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 631338 Details for
Bug 716520
sys-kernel/gentoo-sources-5.6.2+: Add support for ZSTD-compressed kernel and initramfs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
usr: add support for zstd compressed initramfs
5004_ZSTD-v4-5-8-add-support-for-zstd-compressed-initramfs.patch (text/plain), 1.60 KB, created by
Mike Pagano
on 2020-04-08 14:55:55 UTC
(
hide
)
Description:
usr: add support for zstd compressed initramfs
Filename:
MIME Type:
Creator:
Mike Pagano
Created:
2020-04-08 14:55:55 UTC
Size:
1.60 KB
patch
obsolete
>diff --git a/usr/Kconfig b/usr/Kconfig >index bdf5bbd40727..43aca37d09b5 100644 >--- a/usr/Kconfig >+++ b/usr/Kconfig >@@ -100,6 +100,15 @@ config RD_LZ4 > Support loading of a LZ4 encoded initial ramdisk or cpio buffer > If unsure, say N. > >+config RD_ZSTD >+ bool "Support initial ramdisk/ramfs compressed using ZSTD" >+ default y >+ depends on BLK_DEV_INITRD >+ select DECOMPRESS_ZSTD >+ help >+ Support loading of a ZSTD encoded initial ramdisk or cpio buffer. >+ If unsure, say N. >+ > choice > prompt "Built-in initramfs compression mode" > depends on INITRAMFS_SOURCE != "" >@@ -207,4 +216,15 @@ config INITRAMFS_COMPRESSION_LZ4 > If you choose this, keep in mind that most distros don't provide lz4 > by default which could cause a build failure. > >+config INITRAMFS_COMPRESSION_ZSTD >+ bool "ZSTD" >+ depends on RD_ZSTD >+ help >+ ZSTD is a compression algorithm targeting intermediate compression >+ with fast decompression speed. It will compress better than GZIP and >+ decompress around the same speed as LZO, but slower than LZ4. >+ >+ If you choose this, keep in mind that you may need to install the zstd >+ tool to be able to compress the initram. >+ > endchoice >diff --git a/usr/Makefile b/usr/Makefile >index c12e6b15ce72..b1a81a40eab1 100644 >--- a/usr/Makefile >+++ b/usr/Makefile >@@ -15,6 +15,7 @@ compress-$(CONFIG_INITRAMFS_COMPRESSION_LZMA) := lzma > compress-$(CONFIG_INITRAMFS_COMPRESSION_XZ) := xzmisc > compress-$(CONFIG_INITRAMFS_COMPRESSION_LZO) := lzo > compress-$(CONFIG_INITRAMFS_COMPRESSION_LZ4) := lz4 >+compress-$(CONFIG_INITRAMFS_COMPRESSION_ZSTD) := zstd > > obj-$(CONFIG_BLK_DEV_INITRD) := initramfs_data.o >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 716520
:
630946
|
631330
|
631332
|
631334
|
631336
| 631338 |
631340
|
631342
|
631344
|
631346
|
632454