Skip to content

Commit 16fdf29

Browse files
authored
Merge pull request #1000 from AkihiroSuda/dev
templates: add experimental/oraclelinux-9
2 parents 50b7c68 + 981f83a commit 16fdf29

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

examples/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Others:
3838
- [`deprecated/centos-7.yaml`](./deprecated/centos-7.yaml): [deprecated] CentOS Linux 7
3939
- [`experimental/almalinux-9.yaml`](experimental/almalinux-9.yaml): [experimental] AlmaLinux 9
4040
- [`experimental/rocky-9.yaml`](experimental/rocky-9.yaml): [experimental] Rocky Linux 9
41+
- [`experimental/oraclelinux-9.yaml`](experimental/oraclelinux-9.yaml): [experimental] Oracle Linux 9
4142
- [`experimental/centos-stream-9.yaml`](experimental/centos-stream-9.yaml): [experimental] CentOS Stream 9
4243
- [`experimental/9p.yaml`](experimental/9p.yaml): [experimental] use 9p mount type
4344
- [`experimental/riscv64.yaml`](experimental/riscv64.yaml): [experimental] RISC-V
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This example requires Lima v0.11.3 or later.
2+
# Oracle image licence: https://www.oracle.com/downloads/licenses/oracle-linux-license.html
3+
# Image source: https://yum.oracle.com/oracle-linux-templates.html
4+
5+
images:
6+
- location: "https://yum.oracle.com/templates/OracleLinux/OL9/u0/x86_64/OL9U0_x86_64-kvm-b138.qcow"
7+
arch: "x86_64"
8+
digest: "sha256:7911bf8f0dc7a3e1045967d2d647632aba8cafd9f1505d2cb9bbfb4a0f04f818"
9+
- location: "https://yum.oracle.com/templates/OracleLinux/OL9/u0/aarch64/OL9U0_aarch64-kvm-b5.qcow"
10+
arch: "aarch64"
11+
digest: "sha256:084be40daadc63405bf119626bd9f860c19d754ca3798ae37f8eac675ae5e32c"
12+
mounts:
13+
- location: "~"
14+
- location: "/tmp/lima"
15+
writable: true
16+
firmware:
17+
legacyBIOS: true
18+
cpuType:
19+
# For consistency with AlmaLinux 9
20+
x86_64: "Haswell-v4"

pkg/cidata/cidata.TEMPLATE.d/boot/30-install-packages.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ elif command -v dnf >/dev/null 2>&1; then
7171
dnf_install_flags="${dnf_install_flags} --repo ol8_baseos_latest --repo ol8_codeready_builder"
7272
elif grep -q "release 8" /etc/system-release; then
7373
dnf_install_flags="${dnf_install_flags} --enablerepo powertools"
74+
elif grep -q "Oracle Linux Server release 9" /etc/system-release; then
75+
# shellcheck disable=SC2086
76+
dnf install ${dnf_install_flags} oracle-epel-release-el9
77+
dnf config-manager --disable ol9_developer_EPEL >/dev/null 2>&1
78+
dnf_install_flags="${dnf_install_flags} --enablerepo ol9_developer_EPEL"
7479
elif grep -q "release 9" /etc/system-release; then
7580
# shellcheck disable=SC2086
7681
dnf install ${dnf_install_flags} epel-release

0 commit comments

Comments
 (0)