From 53d1ce489809bcca6ed8e27d3afb5ee519bc4678 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Tue, 26 Oct 2021 13:06:40 +0200 Subject: iso2usb.sh: support lzip-ed initrd. Better listing of tool requirements --- iso2usb.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iso2usb.sh b/iso2usb.sh index 4bb33f1..be30582 100644 --- a/iso2usb.sh +++ b/iso2usb.sh @@ -80,7 +80,7 @@ DOLUKS=0 REFRESH=0 # These tools are required by the script, we will check for their existence: -REQTOOLS="blkid cpio extlinux fdisk gdisk isoinfo lsblk mkdosfs sgdisk syslinux wipefs" +REQTOOLS="blkid cpio cryptsetup extlinux fdisk find gdisk gzip isoinfo losetup lsblk lzip mkdosfs sgdisk syslinux wipefs xz" # Path to syslinux files: if [ -d /usr/share/syslinux ]; then @@ -204,6 +204,8 @@ uncompressfs () { gzip -cd "${1}" elif $(file "${1}" | grep -qi ": XZ"); then xz -cd "${1}" + elif $(file "${1}" | grep -qi ": lzip"); then + lzip -cd "${1}" fi } -- cgit v1.2.3