Skip to content

Commit

Permalink
Merge branch 'main' into upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles authored Nov 10, 2024
2 parents 68a729f + af758c0 commit 8ea018f
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-image-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
generate-release:
name: Generate Release
needs: [build-image-beta]
if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event_name.scheduled == '40 4 * * 0'
if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event_name.schedule == '40 4 * * 0'
secrets: inherit
uses: ./.github/workflows/generate-release.yml
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-image-gts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
generate_release:
name: Generate Release
needs: [build-image-gts]
if: github.event_name == 'scheduled' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call'
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call'
secrets: inherit
uses: ./.github/workflows/generate-release.yml
with:
Expand All @@ -36,6 +36,6 @@ jobs:
build-iso-gts:
name: Build GTS ISOs
needs: [build-image-gts]
if: github.event_name == 'scheduled'
if: github.event_name == 'schedule'
secrets: inherit
uses: ./.github/workflows/build-iso-gts.yml
4 changes: 2 additions & 2 deletions .github/workflows/build-image-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
generate-release:
name: Generate Release
needs: [build-image-latest]
if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event_name.scheduled == '40 4 * * 0'
if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event_name.schedule == '40 4 * * 0'
secrets: inherit
uses: ./.github/workflows/generate-release.yml
with:
Expand All @@ -48,6 +48,6 @@ jobs:
build-iso-latest:
name: Build Latest ISOs
needs: [build-image-latest]
if: github.event_name.scheduled == '40 4 * * 0'
if: github.event_name.schedule == '40 4 * * 0'
secrets: inherit
uses: ./.github/workflows/build-iso-latest.yml
4 changes: 2 additions & 2 deletions .github/workflows/build-image-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
generate-release:
name: Generate Release
needs: [build-image-stable]
if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event_name.scheduled == '45 5 * * 0'
if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event_name.schedule == '45 5 * * 0'
secrets: inherit
uses: ./.github/workflows/generate-release.yml
with:
Expand All @@ -47,6 +47,6 @@ jobs:
build-iso-stable:
name: Build Stable ISOs
needs: [build-image-stable]
if: github.event_name.scheduled == '45 5 * * 0'
if: github.event_name.schedule == '45 5 * * 0'
secrets: inherit
uses: ./.github/workflows/build-iso-stable.yml
12 changes: 3 additions & 9 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,8 @@ jobs:
fi
# Kernel Release for ostree.linux label
if [[ "${{ matrix.image_flavor }}" =~ hwe ]]; then
kernel_release=$(skopeo inspect docker://ghcr.io/ublue-os/bazzite-kernel:"${fedora_version}" | jq -r '.Labels["ostree.linux"]')
elif [[ "${{ matrix.stream_name }}" =~ latest|beta ]]; then
kernel_release=$(skopeo inspect docker://ghcr.io/ublue-os/main-kernel:"${fedora_version}" | jq -r '.Labels["ostree.linux"]')
else
kernel_release=$(skopeo inspect docker://ghcr.io/ublue-os/coreos-stable-kernel:"${fedora_version}" | jq -r '.Labels["ostree.linux"]')
fi
kernel_release=$(skopeo inspect docker://ghcr.io/ublue-os/${{ env.AKMODS_FLAVOR }}-kernel:"${fedora_version}" | jq -r '.Labels["ostree.linux"]')
# Get Version
ver=$(skopeo inspect docker://ghcr.io/ublue-os/"${{ env.BASE_IMAGE_NAME }}"-main:"${fedora_version}" | jq -r '.Labels["org.opencontainers.image.version"]')
if [ -z "$ver" ] || [ "null" = "$ver" ]; then
Expand Down Expand Up @@ -189,7 +183,7 @@ jobs:
fi
# Weekly Stable / Rebuild Stable on workflow_dispatch
if [[ "${{ matrix.stream_name }}" =~ "stable" && "${WEEKLY}" == "${TODAY}" && "${{ github.event_name }}" =~ scheduled ]]; then
if [[ "${{ matrix.stream_name }}" =~ "stable" && "${WEEKLY}" == "${TODAY}" && "${{ github.event_name }}" =~ schedule ]]; then
BUILD_TAGS+=("stable" "stable-${TIMESTAMP}")
elif [[ "${{ matrix.stream_name }}" =~ "stable" && "${{ github.event_name }}" =~ workflow_dispatch|workflow_call ]]; then
BUILD_TAGS+=("stable" "stable-${TIMESTAMP}")
Expand Down
27 changes: 27 additions & 0 deletions build_files/base/09-hwe-additions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,30 @@ SURFACE_PACKAGES=(
rpm-ostree install \
"${ASUS_PACKAGES[@]}" \
"${SURFACE_PACKAGES[@]}"

tee /usr/lib/modules-load.d/ublue-surface.conf << EOF
# Add modules necessary for Disk Encryption via keyboard
surface_aggregator
surface_aggregator_registry
surface_aggregator_hub
surface_hid_core
8250_dw
# Surface Laptop 3/Surface Book 3 and later
surface_hid
surface_kbd
# Only on AMD models
pinctrl_amd
# Only on Intel models
intel_lpss
intel_lpss_pci
# For Surface Laptop 3/Surface Book 3
pinctrl_icelake
# For Surface Laptop 4/Surface Laptop Studio
pinctrl_tigerlake
EOF

1 change: 1 addition & 0 deletions system_files/shared/usr/share/ublue-os/topgrade.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[misc]
no_self_update = true
only = ["system", "flatpak", "distrobox", "firmware"]
disable = ["self_update", "toolbx", "containers", "helm"]
ignore_failures = ["distrobox", "flatpak", "brew_cask", "brew_formula", "nix", "node", "pip3", "home_manager", "firmware"]
assume_yes = true
Expand Down

0 comments on commit 8ea018f

Please sign in to comment.