x86_64 iso file name more closely match the format of other Stormux images. Updated rhvoice fixes.
This commit is contained in:
@@ -67,7 +67,6 @@ done
|
|||||||
|
|
||||||
# Get the directory where this script is located
|
# Get the directory where this script is located
|
||||||
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
pi4_files_dir="$script_dir/../pi4/files"
|
|
||||||
|
|
||||||
echo "Building Stormux x86_64 ISO..."
|
echo "Building Stormux x86_64 ISO..."
|
||||||
echo "Profile directory: $script_dir"
|
echo "Profile directory: $script_dir"
|
||||||
@@ -108,6 +107,28 @@ fi
|
|||||||
# Build the ISO
|
# Build the ISO
|
||||||
mkarchiso -v -w "$work_dir" -o "$output_dir" "$script_dir"
|
mkarchiso -v -w "$work_dir" -o "$output_dir" "$script_dir"
|
||||||
|
|
||||||
|
# Rename ISO to stormux-x86_64-YYYY-MM-DD.iso
|
||||||
|
dateStamp="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d)"
|
||||||
|
pushd "$output_dir" > /dev/null
|
||||||
|
shopt -s nullglob
|
||||||
|
isoFiles=( *.iso )
|
||||||
|
shopt -u nullglob
|
||||||
|
|
||||||
|
if [[ ${#isoFiles[@]} -eq 1 && -f "${isoFiles[0]}" ]]; then
|
||||||
|
desiredIso="stormux-x86_64-${dateStamp}.iso"
|
||||||
|
if [[ "${isoFiles[0]}" != "$desiredIso" ]]; then
|
||||||
|
if [[ -e "$desiredIso" ]]; then
|
||||||
|
echo "Warning: $desiredIso already exists; skipping rename."
|
||||||
|
else
|
||||||
|
mv "${isoFiles[0]}" "$desiredIso"
|
||||||
|
echo "Renamed ISO to: $desiredIso"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Warning: expected one ISO in output, found ${#isoFiles[@]}; skipping rename."
|
||||||
|
fi
|
||||||
|
popd > /dev/null
|
||||||
|
|
||||||
# Generate sha1sum for the ISO
|
# Generate sha1sum for the ISO
|
||||||
echo
|
echo
|
||||||
echo "Generating sha1sum..."
|
echo "Generating sha1sum..."
|
||||||
|
|||||||
Reference in New Issue
Block a user