From 804736733e1b44ddbe952c12dced2a081eb00b29 Mon Sep 17 00:00:00 2001 From: Shamil Mubarakshin <127750046+shamil-mubarakshin@users.noreply.github.com> Date: Mon, 9 Oct 2023 15:34:51 +0200 Subject: [PATCH] [macos13] Fix preimagedata for arm64 (#8488) --- images/macos/provision/configuration/preimagedata.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/images/macos/provision/configuration/preimagedata.sh b/images/macos/provision/configuration/preimagedata.sh index de95e4b9..47cc926c 100644 --- a/images/macos/provision/configuration/preimagedata.sh +++ b/images/macos/provision/configuration/preimagedata.sh @@ -2,6 +2,7 @@ source ~/utils/utils.sh +arch=$(get_arch) imagedata_file="$HOME/imagedata.json" image_version=$(echo $IMAGE_VERSION | cut -d _ -f 2) os_name=$(sw_vers -productName) @@ -9,7 +10,11 @@ os_version=$(sw_vers -productVersion) os_build=$(sw_vers -buildVersion) label_version=$(echo $os_version | cut -d. -f1) -image_label="macos-${label_version}" +if [[ $arch == "arm64" ]]; then + image_label="macos-${label_version}-arm64" +else + image_label="macos-${label_version}" +fi release_label="macOS-${label_version}" if is_Ventura; then @@ -34,4 +39,4 @@ cat < $imagedata_file EOF echo "export ImageVersion=$image_version" >> $HOME/.bashrc -echo "export ImageOS=$IMAGE_OS" >> $HOME/.bashrc \ No newline at end of file +echo "export ImageOS=$IMAGE_OS" >> $HOME/.bashrc