Skip to content

Commit

Permalink
Added Ubuntu24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
ElstonLewis committed Apr 29, 2024
1 parent 26ca542 commit 71f516f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ switch(OS) {
script_base = "ubuntu2204"
break

case "Ubuntu 24.04":
base_name = "Ubuntu-24.04"
script_base = "ubuntu2404"
break

case "Debian 12":
base_name = "Debian-12"
script_base = "debian12"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ The following Linux scripts are provided and can be used in `SCRIPT_BASE`:
* rhel9csp (RedHat Enterprise Linux 9)
* ubuntu2004 (Ubuntu 20.04)
* ubuntu2204 (Ubuntu 22.04)
* ubuntu2404 (Ubuntu 24.04)
* debian11 (Debian 11)
* debian12 (Debian 12)
* arch (ArchLinux)
Expand Down
10 changes: 10 additions & 0 deletions scripts/base/ubuntu2404.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -e

#### BASIC IMAGE
yum install -y wget qemu-img sg3_utils libgcrypt
cd /tmp
wget -q https://cloud-images.ubuntu.com/releases/24.04/release/ubuntu-24.04-server-cloudimg-amd64.img
wget -q https://cloud-images.ubuntu.com/releases/24.04/release/MD5SUMS
if [[ $(md5sum -c MD5SUMS 2>&1 | grep -c OK) < 1 ]]; then exit 1; fi
qemu-img convert ./*.img -O raw /dev/sda
2 changes: 1 addition & 1 deletion scripts/linux/boot.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

if [[ "$1" == "ubuntu20"* ]] || [[ "$1" == "ubuntu22"* ]]; then
if [[ "$1" == "ubuntu20"* ]] || [[ "$1" == "ubuntu22"* ]] || [[ "$1" == "ubuntu24"* ]]; then
# Fix for network interfaces not picked up
sed -i 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="acpi_irq_isa=10 net.ifnames=0"/g' /mnt/etc/default/grub
chroot /mnt/ update-grub
Expand Down
2 changes: 1 addition & 1 deletion scripts/linux/cloud-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

cp /tmp/cloudinit/*.cfg /mnt/etc/cloud/cloud.cfg.d/

if [[ "$1" == "ubuntu2204" ]] || [[ "$1" == "rocky9" ]]; then
if [[ "$1" == "ubuntu2204" ]] || [[ "$1" == "ubuntu2404" ]] || [[ "$1" == "rocky9" ]]; then
#Add FNI Hotplug support
cp /tmp/cloudinit-specific/06_hotplug.cfg /mnt/etc/cloud/cloud.cfg.d/
fi

0 comments on commit 71f516f

Please sign in to comment.