fix: Clamp label to 32 bytes

This commit is contained in:
Kroese 2024-01-17 03:26:41 +01:00 committed by GitHub
parent 778ced40e6
commit 24f9f3dc6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,18 +62,6 @@ fi
BASE="custom.iso" BASE="custom.iso"
[ -f "$STORAGE/$BASE" ] && return 0 [ -f "$STORAGE/$BASE" ] && return 0
BASE="Custom.iso"
[ -f "$STORAGE/$BASE" ] && return 0
BASE="custom.ISO"
[ -f "$STORAGE/$BASE" ] && return 0
BASE="CUSTOM.iso"
[ -f "$STORAGE/$BASE" ] && return 0
BASE="CUSTOM.ISO"
[ -f "$STORAGE/$BASE" ] && return 0
if [[ "$EXTERNAL" != [Yy1]* ]]; then if [[ "$EXTERNAL" != [Yy1]* ]]; then
BASE="$VERSION.iso" BASE="$VERSION.iso"
@ -148,6 +136,8 @@ if [[ "$MANUAL" != [Yy1]* ]]; then
fi fi
LABEL="${BASE%.*}" LABEL="${BASE%.*}"
LABEL="${LABEL::32}"
ISO="$TMP/$LABEL.tmp" ISO="$TMP/$LABEL.tmp"
rm -f "$ISO" rm -f "$ISO"