From 0e3e1674ae6d35ab6af29af96a6f24bfb9179078 Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Thu, 3 Sep 2020 12:29:04 +0200 Subject: #997: Support for Initrd compressed in several formats. Adding compatibility with Ubuntu 20.04 Initrd, which is compressed in LZ4 format. --- server/bin/installmodule | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/bin/installmodule') diff --git a/server/bin/installmodule b/server/bin/installmodule index 4625bd04..b0a4ac5b 100755 --- a/server/bin/installmodule +++ b/server/bin/installmodule @@ -73,7 +73,8 @@ source module.conf || exit # Descomprimir Initrd. mkdir -p $tmpinit cd $tmpinit -gzip -dc $INITRD | cpio -im 2>/dev/null +COMPRESS=$(file -b "$CLIENTINITRD" | awk '{print tolower($1);}') +$COMPRESS -dc $INITRD | cpio -im 2>/dev/null # Versión del Kernel del Initrd. KERNEL=$(ls -d lib/modules/[0-9]* | head -1) -- cgit v1.2.3-18-g5258