Skip to content

Commit e7570ef

Browse files
authored
Merge pull request #257 from hangscer8/fix_import_iso_arm64
import iso for arm64
2 parents c25af47 + d392ac7 commit e7570ef

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

artifacts/import_iso.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,18 @@ function iso_os_version_arch() {
5555
echo "/centos-iso/7/os/x86_64"
5656
return
5757
fi
58+
if echo "$path" | grep 'el7.aarch64.rpm' >/dev/null 2>&1; then
59+
echo "/centos-iso/7/os/aarch64"
60+
return
61+
fi
5862
if echo "$path" | grep 'el8.x86_64.rpm' >/dev/null 2>&1; then
5963
echo "/centos-iso/8/os/x86_64"
6064
return
6165
fi
66+
if echo "$path" | grep 'el8.aarch64.rpm' >/dev/null 2>&1; then
67+
echo "/centos-iso/8/os/aarch64"
68+
return
69+
fi
6270
fi
6371
done
6472
echo "not support $ISO_IMG_FILE , can not find os and arch info"
@@ -80,6 +88,7 @@ function mount_iso_file() {
8088
}
8189

8290
function import_iso_data() {
91+
echo "start push ISO data into minio"
8392
Minio_Server_PATH=$(iso_os_version_arch)
8493

8594
if [ -z "$Minio_Server_PATH" ]; then

0 commit comments

Comments
 (0)