test iot-raw-image on fedora37
This commit is contained in:
parent
0c77e4be60
commit
f606e4c054
2 changed files with 31 additions and 14 deletions
|
|
@ -416,6 +416,7 @@ OSTree raw image:
|
|||
- rhos-01/centos-stream-8-x86_64
|
||||
- rhos-01/rhel-9.1-nightly-x86_64
|
||||
- rhos-01/centos-stream-9-x86_64
|
||||
- rhos-01/fedora-37-x86_64
|
||||
|
||||
Rebase OSTree BIOS:
|
||||
stage: test
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ function get_build_info() {
|
|||
key="$1"
|
||||
fname="$2"
|
||||
if rpm -q --quiet weldr-client; then
|
||||
key=".body${key}"
|
||||
key=".[0].body${key}"
|
||||
fi
|
||||
jq -r "${key}" "${fname}"
|
||||
}
|
||||
|
|
@ -79,8 +79,8 @@ STAGE_REPO_URL="http://${STAGE_REPO_ADDRESS}:8080/repo/"
|
|||
ARTIFACTS="${ARTIFACTS:-/tmp/artifacts}"
|
||||
CONTAINER_TYPE=edge-container
|
||||
CONTAINER_FILENAME=container.tar
|
||||
INSTALLER_TYPE=edge-raw-image
|
||||
INSTALLER_FILENAME=image.raw.xz
|
||||
RAW_IMAGE_TYPE=edge-raw-image
|
||||
RAW_IMAGE_FILENAME=image.raw.xz
|
||||
|
||||
# Set up temporary files.
|
||||
TEMPDIR=$(mktemp -d)
|
||||
|
|
@ -111,6 +111,12 @@ case "${ID}-${VERSION_ID}" in
|
|||
OSTREE_REF="centos/9/${ARCH}/edge"
|
||||
OS_VARIANT="centos-stream9"
|
||||
;;
|
||||
"fedora-"*)
|
||||
CONTAINER_TYPE=fedora-iot-container
|
||||
RAW_IMAGE_TYPE=fedora-iot-raw-image
|
||||
OSTREE_REF="fedora/${VERSION_ID}/${ARCH}/iot"
|
||||
OS_VARIANT="fedora-unknown"
|
||||
;;
|
||||
*)
|
||||
echo "unsupported distro: ${ID}-${VERSION_ID}"
|
||||
exit 1;;
|
||||
|
|
@ -291,9 +297,6 @@ version = "*"
|
|||
name = "sssd"
|
||||
version = "*"
|
||||
|
||||
[customizations.kernel]
|
||||
name = "kernel-rt"
|
||||
|
||||
[[customizations.user]]
|
||||
name = "admin"
|
||||
description = "Administrator account"
|
||||
|
|
@ -303,6 +306,14 @@ home = "/home/admin/"
|
|||
groups = ["wheel"]
|
||||
EOF
|
||||
|
||||
# No RT kernel in Fedora
|
||||
if [[ "$ID" != "fedora" ]]; then
|
||||
tee -a "$BLUEPRINT_FILE" > /dev/null << EOF
|
||||
[customizations.kernel]
|
||||
name = "kernel-rt"
|
||||
EOF
|
||||
fi
|
||||
|
||||
greenprint "📄 container blueprint"
|
||||
cat "$BLUEPRINT_FILE"
|
||||
|
||||
|
|
@ -377,12 +388,12 @@ sudo composer-cli blueprints depsolve installer
|
|||
|
||||
# Build installer image.
|
||||
# Test --url arg following by URL with tailling slash for bz#1942029
|
||||
build_image installer "${INSTALLER_TYPE}" "${PROD_REPO_URL}/"
|
||||
build_image installer "${RAW_IMAGE_TYPE}" "${PROD_REPO_URL}/"
|
||||
|
||||
# Download the image
|
||||
greenprint "📥 Downloading the raw image"
|
||||
sudo composer-cli compose image "${COMPOSE_ID}" > /dev/null
|
||||
ISO_FILENAME="${COMPOSE_ID}-${INSTALLER_FILENAME}"
|
||||
ISO_FILENAME="${COMPOSE_ID}-${RAW_IMAGE_FILENAME}"
|
||||
|
||||
greenprint "Extracting and converting the raw image to a qcow2 file"
|
||||
sudo xz -d "${ISO_FILENAME}"
|
||||
|
|
@ -451,7 +462,7 @@ ansible_python_interpreter=/usr/bin/python3
|
|||
ansible_user=admin
|
||||
ansible_private_key_file=${SSH_KEY}
|
||||
ansible_ssh_common_args="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
|
||||
ansible_become=yes
|
||||
ansible_become=yes
|
||||
ansible_become_method=sudo
|
||||
ansible_become_pass=${EDGE_USER_PASSWORD}
|
||||
EOF
|
||||
|
|
@ -524,7 +535,7 @@ ansible_python_interpreter=/usr/bin/python3
|
|||
ansible_user=admin
|
||||
ansible_private_key_file=${SSH_KEY}
|
||||
ansible_ssh_common_args="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
|
||||
ansible_become=yes
|
||||
ansible_become=yes
|
||||
ansible_become_method=sudo
|
||||
ansible_become_pass=${EDGE_USER_PASSWORD}
|
||||
EOF
|
||||
|
|
@ -560,9 +571,6 @@ version = "*"
|
|||
name = "wget"
|
||||
version = "*"
|
||||
|
||||
[customizations.kernel]
|
||||
name = "kernel-rt"
|
||||
|
||||
[[customizations.user]]
|
||||
name = "admin"
|
||||
description = "Administrator account"
|
||||
|
|
@ -571,6 +579,14 @@ home = "/home/admin/"
|
|||
groups = ["wheel"]
|
||||
EOF
|
||||
|
||||
# No RT kernel in Fedora
|
||||
if [[ "$ID" != "fedora" ]]; then
|
||||
tee -a "$BLUEPRINT_FILE" > /dev/null << EOF
|
||||
[customizations.kernel]
|
||||
name = "kernel-rt"
|
||||
EOF
|
||||
fi
|
||||
|
||||
greenprint "📄 upgrade blueprint"
|
||||
cat "$BLUEPRINT_FILE"
|
||||
|
||||
|
|
@ -659,7 +675,7 @@ ansible_python_interpreter=/usr/bin/python3
|
|||
ansible_user=admin
|
||||
ansible_private_key_file=${SSH_KEY}
|
||||
ansible_ssh_common_args="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
|
||||
ansible_become=yes
|
||||
ansible_become=yes
|
||||
ansible_become_method=sudo
|
||||
ansible_become_pass=${EDGE_USER_PASSWORD}
|
||||
EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue