Skip to content

Commit

Permalink
build: armbian kernels: use inventory_id (sans "armbian-" prefix) in …
Browse files Browse the repository at this point in the history
…kernel tag name

- previous approach only took the 2nd dash-field, which is not enough to uniquely identify kernels
- avoid `uefi-x86-edge` and `uefi-arm64-edge` both competing for `uefi`

Signed-off-by: Ricardo Pardini <[email protected]>
  • Loading branch information
rpardini committed May 12, 2024
1 parent caa9518 commit dab9c70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bash/kernel/kernel_armbian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ function calculate_kernel_version_armbian() {
input_hash="$(cat "${ARMBIAN_KERNEL_DOCKERFILE}" | sha256sum - | cut -d ' ' -f 1)"
short_input_hash="${input_hash:0:8}"
kernel_oci_version="${ARMBIAN_KERNEL_MAJOR_MINOR_POINT}-${short_input_hash}"
armbian_type="$( echo "${inventory_id}" | cut -d "-" -f 2 )"
kernel_oci_image="${HOOK_KERNEL_OCI_BASE}-armbian:${kernel_oci_version}"-"${armbian_type}"
armbian_type="${inventory_id#"armbian-"}" # remove the 'armbian-' prefix from inventory_id, but keep the rest. "uefi" has "current/edge" and "arm64/x86" variants.
kernel_oci_image="${HOOK_KERNEL_OCI_BASE}-armbian:${kernel_oci_version}-${armbian_type}"
log info "kernel_oci_version: ${kernel_oci_version}"
log info "kernel_oci_image: ${kernel_oci_image}"
}
Expand Down

0 comments on commit dab9c70

Please sign in to comment.