From 7cdd733ba9b2418c6c1fa018940eba78a01b85c4 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 16 Feb 2019 18:32:59 +0100 Subject: iso2usb.sh: warn and exit if zstd support is missing --- iso2usb.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/iso2usb.sh b/iso2usb.sh index efcaad5..237e553 100644 --- a/iso2usb.sh +++ b/iso2usb.sh @@ -419,7 +419,7 @@ while [ ! -z "$1" ]; do HLUKSSIZE="$2" DOLUKS=1 # Needs unsquashfs to extract the /home - REQTOOLS="${REQTOOLS} unsquashfs" + REQTOOLS="${REQTOOLS} unsquashfs zstd" shift 2 ;; -d|--devices) @@ -544,6 +544,11 @@ done if [ ! -z "$PROG_MISSING" ] ; then echo "-- Required program(s) not found in search path '$PATH'!" echo -e ${PROG_MISSING} + if echo ${PROG_MISSING} |grep -wq zstd ; then + echo "-- Note that the 'zstd' program is missing which means" + echo "-- unsquashfs is not linking against it." + echo "-- Install the zstd and squashf-stools packages for zstd support." + fi echo "-- Exiting." exit 1 fi -- cgit v1.2.3