Skip to content

Commit

Permalink
kiss-vm,distro-db.bash: s/\<ppc64\>/ppc64le/g sometimes
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhong Yin <[email protected]>
  • Loading branch information
tcler committed Jul 31, 2023
1 parent 0365bd1 commit dbd34a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
15 changes: 8 additions & 7 deletions distro-db.bash
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
declare -A distroInfo

#### CentOS stream and CentOS
distroInfo[Rocky-9]="https://mirrors.sdu.edu.cn/rocky/9/images/$GuestARCH/%%GenericCloud.*.qcow2 https://mirrors.sdu.edu.cn/rocky/9/BaseOS/$GuestARCH/os"
distroInfo[Rocky-8]="https://mirrors.sdu.edu.cn/rocky/8/images/$GuestARCH/%%GenericCloud.*.qcow2 https://mirrors.sdu.edu.cn/rocky/8/BaseOS/$GuestARCH/os"
distroInfo[CentOS-9-stream]="https://cloud.centos.org/centos/9-stream/$GuestARCH/images/ http://mirror.stream.centos.org/9-stream/BaseOS/$GuestARCH/os/"
distroInfo[CentOS-8-stream]="https://cloud.centos.org/centos/8-stream/$GuestARCH/images/ http://mirror.centos.org/centos/8-stream/BaseOS/$GuestARCH/os/"
distroInfo[CentOS-8]="https://cloud.centos.org/centos/8/$GuestARCH/images/ http://mirror.centos.org/centos/8/BaseOS/$GuestARCH/os/"
distroInfo[CentOS-7]="https://cloud.centos.org/centos/7/images/%%GenericCloud-.{4}.qcow2c http://mirror.centos.org/centos/7/os/$GuestARCH/"
distroInfo[CentOS-6]="https://cloud.centos.org/centos/6/images/%%GenericCloud.qcow2c http://mirror.centos.org/centos/6/os/$GuestARCH/"
_GuestARCH=$GuestARCH; [[ "$GuestARCH" = ppc64 ]] && _GuestARCH=ppc64le;
distroInfo[Rocky-9]="https://mirrors.sdu.edu.cn/rocky/9/images/$_GuestARCH/%%GenericCloud.*.qcow2 https://mirrors.sdu.edu.cn/rocky/9/BaseOS/$_GuestARCH/os"
distroInfo[Rocky-8]="https://mirrors.sdu.edu.cn/rocky/8/images/$_GuestARCH/%%GenericCloud.*.qcow2 https://mirrors.sdu.edu.cn/rocky/8/BaseOS/$_GuestARCH/os"
distroInfo[CentOS-9-stream]="https://cloud.centos.org/centos/9-stream/$_GuestARCH/images/ http://mirror.stream.centos.org/9-stream/BaseOS/$_GuestARCH/os/"
distroInfo[CentOS-8-stream]="https://cloud.centos.org/centos/8-stream/$_GuestARCH/images/ http://mirror.centos.org/centos/8-stream/BaseOS/$_GuestARCH/os/"
distroInfo[CentOS-8]="https://cloud.centos.org/centos/8/$_GuestARCH/images/ http://mirror.centos.org/centos/8/BaseOS/$_GuestARCH/os/"
distroInfo[CentOS-7]="https://cloud.centos.org/centos/7/images/%%GenericCloud-.{4}.qcow2c http://mirror.centos.org/centos/7/os/$_GuestARCH/"
distroInfo[CentOS-6]="https://cloud.centos.org/centos/6/images/%%GenericCloud.qcow2c http://mirror.centos.org/centos/6/os/$_GuestARCH/"

#### Fedora
# https://ord.mirror.rackspace.com/fedora/releases/$version/Cloud/
Expand Down
1 change: 1 addition & 0 deletions kiss-vm
Original file line number Diff line number Diff line change
Expand Up @@ -1751,6 +1751,7 @@ if [[ $Intranet = yes ]]; then
local arch=$GuestARCH
[[ $arch = aarch64 || $arch = arm64 ]] && arch="(aarch64|arm64)"
[[ $arch = x86_64 || $arch = amd64 ]] && arch="(x86_64|amd64)"
[[ $arch = ppc64 || $arch = ppc64le ]] && arch="(ppc64|ppc64le)"
imgs=$(grep -E "$arch" <<< "$imagenames")
if [[ -n "$imgs" ]]; then imagenames="$imgs"; else return 1; fi

Expand Down

0 comments on commit dbd34a4

Please sign in to comment.