Skip to content

Commit

Permalink
Added RHEL8 script
Browse files Browse the repository at this point in the history
  • Loading branch information
ElstonLewis committed Jan 26, 2024
1 parent 8e4d5dc commit 9525163
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions scripts/base/rhel8.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
set -e

#### BASIC IMAGE
yum install -y wget qemu-img libgcrypt
cd /tmp
wget -q https://oos.eu-west-2.outscale.com/omi/qcow/rhel-8.4-x86_64-kvm.qcow2
mv *.qcow2 rhel8.qcow2
qemu-img convert ./rhel8.qcow2 -O raw /dev/sda
2 changes: 1 addition & 1 deletion scripts/linux/rhel-activation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [[ "$1" == "rhel"*"csp" ]]; then
curl -k --output /mnt/tmp/katello-ca-consumer-latest.noarch.rpm https://169.254.169.254:4888/pub/katello-ca-consumer-latest.noarch.rpm
chroot /mnt yum localinstall -y /tmp/katello-ca-consumer-latest.noarch.rpm

if [[ "$1" == "rhel9csp" ]]; then
if [[ "$1" == "rhel8csp" ]] && [[ "$1" == "rhel9csp" ]]; then
cp /tmp/cloudinit-specific/05_rhel9.cfg /mnt/etc/cloud/cloud.cfg.d/
fi
fi

0 comments on commit 9525163

Please sign in to comment.