Explicitly select the Omarchy Cirrus firmware when the installed package predates the 1028:0e54 aliases. Apply it during hardware setup and through an update migration, and request a reboot for each user until the firmware can load. Require the same minimum version in the offline package list so newer Arch snapshots keep their genuine firmware. Co-Authored-By: GPT-6.1-Sol <noreply@openai.com>
13 lines
601 B
Bash
13 lines
601 B
Bash
if omarchy-hw-dell-xps13-dx13260-ptl; then
|
|
cirrus_package=$(pacman -Q linux-firmware-cirrus 2>/dev/null || true)
|
|
|
|
# Keep newer Arch firmware when stable's snapshot supersedes the shim.
|
|
if [[ -z $cirrus_package ]] || (( $(vercmp "${cirrus_package#* }" "20260810-3") < 0 )); then
|
|
firmware_pending="${OMARCHY_XPS13_FIRMWARE_PENDING:-/run/omarchy/xps13-ptl-speaker-firmware}"
|
|
sudo install -Dm644 /dev/null "$firmware_pending"
|
|
|
|
# [core] precedes [omarchy], so an unqualified target selects the older firmware.
|
|
sudo pacman -S --noconfirm --needed omarchy/linux-firmware-cirrus
|
|
fi
|
|
fi
|