a6ee4d0c21
Add openeuler-minimal element and add CI functional tests for both x86_64 and arm64. OpenEuler is an open source community driven YUM/DNF distro like Fedora. It references Fedora and CentOS a lot for the rpm packages building. So somewhat it can be treated as a redhat family distro and reuse the YUM/DNF related elements to help build openEuler images. For more info about openEuler, see: https://openeuler.org/en Depends-On: https://review.opendev.org/c/zuul/zuul-jobs/+/803413 Change-Id: I3e06e49b524364c3a4edeba8bce7a8c06b9c7b76
29 lines
669 B
Bash
Executable file
29 lines
669 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
# NOTE(xinliang): This script should run before script elements/yum-minimal/root.d/08-yum-chroot
|
|
# So set the script name prefix as 00-
|
|
yum_repos_dir="$(dirname $0)/../yum.repos.d"
|
|
mkdir -p $yum_repos_dir
|
|
|
|
repo_file=$(mktemp)
|
|
cat > $repo_file << EOF
|
|
[OS]
|
|
name=openEuler-$DIB_RELEASE - OS
|
|
baseurl=http://repo.openeuler.org/openEuler-$DIB_RELEASE/OS/\$basearch/
|
|
enabled=1
|
|
gpgcheck=0
|
|
|
|
[update]
|
|
name=openEuler-$DIB_RELEASE - update
|
|
baseurl=http://repo.openeuler.org/openEuler-$DIB_RELEASE/update/\$basearch/
|
|
enabled=1
|
|
gpgcheck=0
|
|
EOF
|
|
|
|
mv $repo_file ${yum_repos_dir}/openEuler.repo
|