From e0752d6c07b38496104b35a1310dbb1cb30da421 Mon Sep 17 00:00:00 2001 From: Elston Lewis Date: Thu, 21 Sep 2023 10:48:44 +0200 Subject: [PATCH] MKP-1525 Add Debian 12 --- Jenkinsfile | 5 +++++ scripts/base/debian12.sh | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 scripts/base/debian12.sh diff --git a/Jenkinsfile b/Jenkinsfile index 9fb40eb..439bbc8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -50,6 +50,11 @@ switch(OS) { script_base = "ubuntu2204" break + case "Debian 12": + base_name = "Debian-12" + script_base = "debian12" + break + case "Debian 11": base_name = "Debian-11" script_base = "debian11" diff --git a/scripts/base/debian12.sh b/scripts/base/debian12.sh new file mode 100644 index 0000000..8f7e14c --- /dev/null +++ b/scripts/base/debian12.sh @@ -0,0 +1,11 @@ +#!/bin/bash +set -e + +#### BASIC IMAGE +yum install -y wget qemu-img libgcrypt +cd /tmp +wget -q https://cdimage.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2 +wget -q https://cdimage.debian.org/images/cloud/bookworm/latest/SHA512SUMS +if [[ $(cat SHA512SUMS | grep -c `sha512sum *.qcow2 | cut -d " " -f 1`) < 1 ]]; then exit 1; fi +mv *.qcow2 debian12.qcow2 +qemu-img convert ./debian12.qcow2 -O raw /dev/sda