diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index 5e5bdac3a96..beb21b2fd3e 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -310,6 +310,10 @@ jobs: io.artifacthub.package.readme-url=https://raw.githubusercontent.com/ublue-os/bluefin/bluefin/README.md io.artifacthub.package.logo-url=https://avatars.githubusercontent.com/u/120078124?s=200&v=4 + - name: Define env.SHA_HEAD_SHORT + run: | + echo "SHA_HEAD_SHORT=${GITHUB_SHA::7}" >> $GITHUB_ENV + - name: Pull images if: github.event_name == 'pull_request' && ( matrix.image_flavor == 'main' || matrix.image_flavor == 'nvidia' ) || github.event_name != 'pull_request' uses: Wandalen/wretry.action@6feedb7dedadeb826de0f45ff482b53b379a7844 # v3.5.0 @@ -342,6 +346,7 @@ jobs: BUILD_ARGS+=("--build-arg" "NVIDIA_TYPE=${{ env.nvidia_type }}") BUILD_ARGS+=("--build-arg" "KERNEL=${{ env.kernel_release }}") BUILD_ARGS+=("--build-arg" "UBLUE_IMAGE_TAG=${{ matrix.fedora_version }}") + BUILD_ARGS+=("--build-arg" "SHA_HEAD_SHORT=${{ env.SHA_HEAD_SHORT }}") TAG_ARGS=() IFS=' ' read -r -a tags_array <<< "${{ steps.generate-tags.outputs.alias_tags }}" diff --git a/Containerfile b/Containerfile index 916d80a04be..387b5957865 100644 --- a/Containerfile +++ b/Containerfile @@ -8,6 +8,7 @@ ARG TARGET_BASE="${TARGET_BASE:-bluefin}" ARG NVIDIA_TYPE="${NVIDIA_TYPE:-}" ARG KERNEL="${KERNEL:-6.9.7-200.fc40.x86_64}" ARG UBLUE_IMAGE_TAG="${UBLUE_IMAGE_TAG:-latest}" +ARG SHA_HEAD_SHORT="${SHA_HEAD_SHORT}" # FROM's for Mounting ARG KMOD_SOURCE_COMMON="ghcr.io/ublue-os/akmods:${AKMODS_FLAVOR}-${FEDORA_MAJOR_VERSION}" @@ -34,7 +35,7 @@ ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}" ARG NVIDIA_TYPE="${NVIDIA_TYPE:-}" ARG KERNEL="${KERNEL:-6.9.7-200.fc40.x86_64}" ARG UBLUE_IMAGE_TAG="${UBLUE_IMAGE_TAG:-latest}" - +ARG SHA_HEAD_SHORT="${SHA_HEAD_SHORT}" # Build, cleanup, commit. RUN --mount=type=cache,dst=/var/cache/rpm-ostree \ @@ -65,6 +66,7 @@ ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}" ARG NVIDIA_TYPE="${NVIDIA_TYPE:-}" ARG KERNEL="${KERNEL:-6.9.7-200.fc40.x86_64}" ARG UBLUE_IMAGE_TAG="${UBLUE_IMAGE_TAG:-latest}" +ARG SHA_HEAD_SHORT="${SHA_HEAD_SHORT}" # Build, Clean-up, Commit RUN --mount=type=cache,dst=/var/cache/rpm-ostree \ diff --git a/build_files/copr-repos.sh b/build_files/copr-repos.sh index ae1d107d6a3..f51856cbba3 100755 --- a/build_files/copr-repos.sh +++ b/build_files/copr-repos.sh @@ -67,6 +67,17 @@ if [[ "${BASE_IMAGE_NAME}" = "silverblue" && "${FEDORA_MAJOR_VERSION}" -gt "39" mutter-common fi +# Fix for ID in fwupd +if [[ "${FEDORA_MAJOR_VERSION}" -gt "39" ]]; then + rpm-ostree override replace \ + --experimental \ + --from repo=copr:copr.fedorainfracloud.org:ublue-os:staging \ + fwupd \ + fwupd-plugin-flashrom \ + fwupd-plugin-modem-manager \ + fwupd-plugin-uefi-capsule-data +fi + # Switcheroo patch rpm-ostree override replace \ --experimental \ diff --git a/build_files/image-info.sh b/build_files/image-info.sh index 2edeea6d280..9d8bb6e579d 100755 --- a/build_files/image-info.sh +++ b/build_files/image-info.sh @@ -2,12 +2,26 @@ set -ouex pipefail +IMAGE_PRETTY_NAME="Bluefin" +IMAGE_LIKE="fedora" +HOME_URL="https://projectbluefin.io" +DOCUMENTATION_URL="https://docs.projectbluefin.io" +SUPPORT_URL="https://github.com/ublue-os/bluefin/issues/" +BUG_SUPPORT_URL="https://github.com/ublue-os/bluefin/issues/" +CODE_NAME="Archaeopteryx" + IMAGE_INFO="/usr/share/ublue-os/image-info.json" IMAGE_REF="ostree-image-signed:docker://ghcr.io/$IMAGE_VENDOR/$IMAGE_NAME" #shellcheck disable=SC2153 image_flavor="${IMAGE_FLAVOR}" +# Aurora +if [[ "${BASE_IMAGE_NAME}" == "kinoite" ]]; then + IMAGE_PRETTY_NAME="Aurora" + HOME_URL="https://getaurora.dev/" +fi + if [[ "${NVIDIA_TYPE}" == "nvidia" ]]; then image_flavor="nvidia" fi @@ -24,4 +38,23 @@ cat > $IMAGE_INFO <> /usr/lib/os-release +fi + +# Fix issues caused by ID no longer being fedora +sed -i "s/^EFIDIR=.*/EFIDIR=\"fedora\"/" /usr/sbin/grub2-switch-to-blscfg \ No newline at end of file