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/centos-stream-8-x86_64
|
||||||
- rhos-01/rhel-9.1-nightly-x86_64
|
- rhos-01/rhel-9.1-nightly-x86_64
|
||||||
- rhos-01/centos-stream-9-x86_64
|
- rhos-01/centos-stream-9-x86_64
|
||||||
|
- rhos-01/fedora-37-x86_64
|
||||||
|
|
||||||
Rebase OSTree BIOS:
|
Rebase OSTree BIOS:
|
||||||
stage: test
|
stage: test
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ function get_build_info() {
|
||||||
key="$1"
|
key="$1"
|
||||||
fname="$2"
|
fname="$2"
|
||||||
if rpm -q --quiet weldr-client; then
|
if rpm -q --quiet weldr-client; then
|
||||||
key=".body${key}"
|
key=".[0].body${key}"
|
||||||
fi
|
fi
|
||||||
jq -r "${key}" "${fname}"
|
jq -r "${key}" "${fname}"
|
||||||
}
|
}
|
||||||
|
|
@ -79,8 +79,8 @@ STAGE_REPO_URL="http://${STAGE_REPO_ADDRESS}:8080/repo/"
|
||||||
ARTIFACTS="${ARTIFACTS:-/tmp/artifacts}"
|
ARTIFACTS="${ARTIFACTS:-/tmp/artifacts}"
|
||||||
CONTAINER_TYPE=edge-container
|
CONTAINER_TYPE=edge-container
|
||||||
CONTAINER_FILENAME=container.tar
|
CONTAINER_FILENAME=container.tar
|
||||||
INSTALLER_TYPE=edge-raw-image
|
RAW_IMAGE_TYPE=edge-raw-image
|
||||||
INSTALLER_FILENAME=image.raw.xz
|
RAW_IMAGE_FILENAME=image.raw.xz
|
||||||
|
|
||||||
# Set up temporary files.
|
# Set up temporary files.
|
||||||
TEMPDIR=$(mktemp -d)
|
TEMPDIR=$(mktemp -d)
|
||||||
|
|
@ -111,6 +111,12 @@ case "${ID}-${VERSION_ID}" in
|
||||||
OSTREE_REF="centos/9/${ARCH}/edge"
|
OSTREE_REF="centos/9/${ARCH}/edge"
|
||||||
OS_VARIANT="centos-stream9"
|
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}"
|
echo "unsupported distro: ${ID}-${VERSION_ID}"
|
||||||
exit 1;;
|
exit 1;;
|
||||||
|
|
@ -291,9 +297,6 @@ version = "*"
|
||||||
name = "sssd"
|
name = "sssd"
|
||||||
version = "*"
|
version = "*"
|
||||||
|
|
||||||
[customizations.kernel]
|
|
||||||
name = "kernel-rt"
|
|
||||||
|
|
||||||
[[customizations.user]]
|
[[customizations.user]]
|
||||||
name = "admin"
|
name = "admin"
|
||||||
description = "Administrator account"
|
description = "Administrator account"
|
||||||
|
|
@ -303,6 +306,14 @@ home = "/home/admin/"
|
||||||
groups = ["wheel"]
|
groups = ["wheel"]
|
||||||
EOF
|
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"
|
greenprint "📄 container blueprint"
|
||||||
cat "$BLUEPRINT_FILE"
|
cat "$BLUEPRINT_FILE"
|
||||||
|
|
||||||
|
|
@ -377,12 +388,12 @@ sudo composer-cli blueprints depsolve installer
|
||||||
|
|
||||||
# Build installer image.
|
# Build installer image.
|
||||||
# Test --url arg following by URL with tailling slash for bz#1942029
|
# 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
|
# Download the image
|
||||||
greenprint "📥 Downloading the raw image"
|
greenprint "📥 Downloading the raw image"
|
||||||
sudo composer-cli compose image "${COMPOSE_ID}" > /dev/null
|
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"
|
greenprint "Extracting and converting the raw image to a qcow2 file"
|
||||||
sudo xz -d "${ISO_FILENAME}"
|
sudo xz -d "${ISO_FILENAME}"
|
||||||
|
|
@ -560,9 +571,6 @@ version = "*"
|
||||||
name = "wget"
|
name = "wget"
|
||||||
version = "*"
|
version = "*"
|
||||||
|
|
||||||
[customizations.kernel]
|
|
||||||
name = "kernel-rt"
|
|
||||||
|
|
||||||
[[customizations.user]]
|
[[customizations.user]]
|
||||||
name = "admin"
|
name = "admin"
|
||||||
description = "Administrator account"
|
description = "Administrator account"
|
||||||
|
|
@ -571,6 +579,14 @@ home = "/home/admin/"
|
||||||
groups = ["wheel"]
|
groups = ["wheel"]
|
||||||
EOF
|
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"
|
greenprint "📄 upgrade blueprint"
|
||||||
cat "$BLUEPRINT_FILE"
|
cat "$BLUEPRINT_FILE"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue