Fix ISO build: truncate volume ID to 32 chars (xorriso limit)
EASY_BEE_NVIDIA_LEGACY_V<date> is 33 characters; ISO 9660 volid is limited to 32. Compute the maximum token length dynamically from the prefix length and trim ISO_VERSION_LABEL_TOKEN with cut before assembling BEE_ISO_VOLUME. All four variants now fit within the limit. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1688,7 +1688,12 @@ echo "=== building ISO (variant: ${BUILD_VARIANT}) ==="
|
||||
|
||||
# Export for auto/config
|
||||
BEE_GPU_VENDOR_UPPER="$(echo "${BUILD_VARIANT}" | tr 'a-z-' 'A-Z_')"
|
||||
BEE_ISO_VOLUME="EASY_BEE_${BEE_GPU_VENDOR_UPPER}_V${ISO_VERSION_LABEL_TOKEN}"
|
||||
# ISO 9660 volume ID is limited to 32 characters; truncate the version token to fit.
|
||||
_vol_prefix="EASY_BEE_${BEE_GPU_VENDOR_UPPER}_V"
|
||||
_max_token=$(( 32 - ${#_vol_prefix} ))
|
||||
_vol_token="$(printf '%s' "${ISO_VERSION_LABEL_TOKEN}" | cut -c1-${_max_token})"
|
||||
BEE_ISO_VOLUME="${_vol_prefix}${_vol_token}"
|
||||
unset _vol_prefix _max_token _vol_token
|
||||
export BEE_GPU_VENDOR_UPPER BEE_ISO_VOLUME
|
||||
|
||||
cd "${LB_DIR}"
|
||||
|
||||
Reference in New Issue
Block a user