aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2021-10-26 13:06:40 +0200
committer Eric Hameleers <alien@slackware.com>2021-10-26 13:06:40 +0200
commit53d1ce489809bcca6ed8e27d3afb5ee519bc4678 (patch)
tree9ab1741f7a1dce210a60722ab33743c213c90427
parent7d2e1d26cbf10f342b8078040234f2ac354ec320 (diff)
downloadliveslak-53d1ce489809bcca6ed8e27d3afb5ee519bc4678.tar.gz
liveslak-53d1ce489809bcca6ed8e27d3afb5ee519bc4678.tar.xz
iso2usb.sh: support lzip-ed initrd. Better listing of tool requirements
-rw-r--r--iso2usb.sh4
1 files changed, 3 insertions, 1 deletions
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
}