Skip to content

Commit

Permalink
Add support for RHEL 8 RAW image builds
Browse files Browse the repository at this point in the history
Signed-off-by: Abhay Krishna Arunachalam <[email protected]>
  • Loading branch information
abhay-krishna committed Mar 29, 2023
1 parent 9854be3 commit e5e4a87
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion images/capi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ OSC_BUILD_NAMES ?= osc-ubuntu-2004
QEMU_BUILD_NAMES ?= qemu-ubuntu-1804 qemu-ubuntu-2004 qemu-ubuntu-2204 qemu-centos-7 qemu-ubuntu-2004-efi qemu-rhel-8 qemu-rockylinux-8 qemu-flatcar
QEMU_KUBEVIRT_BUILD_NAMES := $(addprefix kubevirt-,$(QEMU_BUILD_NAMES))

RAW_BUILD_NAMES ?= raw-ubuntu-1804 raw-ubuntu-2004 raw-ubuntu-2004-efi raw-flatcar
RAW_BUILD_NAMES ?= raw-ubuntu-1804 raw-ubuntu-2004 raw-ubuntu-2004-efi raw-flatcar raw-rhel-8
VBOX_BUILD_NAMES ?= vbox-windows-2019

POWERVS_BUILD_NAMES ?= powervs-centos-8
Expand Down Expand Up @@ -714,6 +714,7 @@ build-raw-flatcar: ## Builds Flatcar RAW image
build-raw-ubuntu-1804: ## Builds Ubuntu 18.04 RAW image
build-raw-ubuntu-2004: ## Builds Ubuntu 20.04 RAW image
build-raw-ubuntu-2004-efi: ## Builds Ubuntu 20.04 RAW image that EFI boots
build-raw-rhel-8: ## Builds RHEL 8 RAW image
build-raw-all: $(RAW_BUILD_TARGETS) ## Builds all RAW images

build-oci-ubuntu-1804: ## Builds the OCI ubuntu-1804 image
Expand Down Expand Up @@ -843,6 +844,7 @@ validate-raw-flatcar: ## Validates Flatcar RAW image packer config
validate-raw-ubuntu-1804: ## Validates Ubuntu 18.04 RAW image packer config
validate-raw-ubuntu-2004: ## Validates Ubuntu 20.04 RAW image packer config
validate-raw-ubuntu-2004-efi: ## Validates Ubuntu 20.04 RAW EFI image packer config
validate-raw-rhel-8: ## Validates RHEL 8 RAW image packer config
validate-raw-all: $(RAW_VALIDATE_TARGETS) ## Validates all RAW Packer config

validate-oci-ubuntu-1804: ## Validates the OCI ubuntu-1804 image packer config
Expand Down
1 change: 1 addition & 0 deletions images/capi/packer/raw/linux/rhel
15 changes: 15 additions & 0 deletions images/capi/packer/raw/raw-rhel-8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"boot_command_prefix": "<tab> text inst.ks=",
"boot_command_suffix": "/8/ks.cfg<enter><wait>",
"build_name": "rhel-8",
"distro_name": "rhel",
"distro_version": "8",
"epel_rpm_gpg_key": "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8",
"guest_os_type": "RedHat_64",
"iso_checksum": "a6a7418a75d721cc696d3cbdd648b5248808e7fef0f8742f518e43b46fa08139",
"iso_checksum_type": "sha256",
"iso_url": "file:///rhel-8.7-x86_64-dvd.iso",
"os_display_name": "RHEL 8",
"redhat_epel_rpm": "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm",
"shutdown_command": "shutdown -P now"
}

0 comments on commit e5e4a87

Please sign in to comment.