From e00d77ae28f017b2aaef13a44ef110c46993a0db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Tue, 9 Jun 2020 16:05:36 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=BE=20=D1=81=D0=B6=D0=B0=D1=82=D0=B8=D0=B5=20initramfs=20?= =?UTF-8?q?=D0=B2=20=D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D0=B8=20=D0=BE=D1=82=20=D0=B4=D0=BE=D1=81=D1=82=D1=83?= =?UTF-8?q?=D0=BF=D0=BD=D1=8B=D1=85=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5?= =?UTF-8?q?=D1=82=D1=80=D0=BE=D0=B2=20=D1=8F=D0=B4=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cl-kernel | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/cl-kernel b/cl-kernel index e773e3f..8c9a115 100755 --- a/cl-kernel +++ b/cl-kernel @@ -14,7 +14,7 @@ # limitations under the License. TEXTDOMAIN=cl_kernel -CL_KERNEL_VERSION=0.2.1 +CL_KERNEL_VERSION=0.2.6 DESCRIPTION=$"Kernel building tool" DEFAULT_KERNEL_DIRECTORY="$(readlink -f /usr/src/linux)" SRC_DIRECTORY=/usr/src @@ -673,8 +673,14 @@ then make $MAKEOPTS modules_install || eerror $"Failed to compile the kernel modules" || exit 1 make $MAKEOPTS install || eerror $"Failed to install the kernel" || exit 1 ) || eerror $"Failed to build kernel" - # использовать сжатие xz если поддерживается ядром - if grep -q "CONFIG_RD_XZ=y" ${NEW_CONFIG} + # использовать сжатие если поддерживается ядром (zstd,gzip,xz) + if grep -q "CONFIG_RD_ZSTD=y" ${NEW_CONFIG} + then + COMPRESS=--zstd + elif grep -q "CONFIG_RD_GZIP=y" ${NEW_CONFIG} + then + COMPRESS=--gzip + elif grep -q "CONFIG_RD_XZ=y" ${NEW_CONFIG} then COMPRESS=--xz fi