Make linux-omarchy the default kernel except on T2 Macs

This commit is contained in:
Ryan Hughes committed 2026-09-14 16:32:09 -04:00
1 parent b679363bed
commit ff85faf8dd
14 files changed
+402 -288

No files matched your search

-26
View File
@@ -1,26 +0,0 @@
# Install Panther Lake kernel for Dell XPS Panther Lake systems
# The Omarchy PTL kernel includes Panther Lake display and memory fixes.
if omarchy-hw-match "XPS" && omarchy-hw-intel-ptl; then
echo "Detected Dell XPS Panther Lake, installing PTL kernel..."
# linux-ptl required SOF firmware; the new kernel only lists it as optional.
omarchy-pkg-add linux-omarchy-ptl-novrr-mm linux-omarchy-ptl-novrr-mm-headers sof-firmware
pacman -Rdd --noconfirm linux linux-headers || true
# The PTL kernel doesn't provide=linux, so anything depending on linux drags the
# stock kernel back in and the boot menu grows a second, slower entry.
if pacman -Qq linux &>/dev/null; then
echo "WARNING: stock linux kernel still installed alongside the Omarchy PTL kernel:"
pacman -Qi linux | grep -i "required by"
fi
mkdir -p /etc/limine-entry-tool.d
# Named to sort after omarchy-defaults.conf: drop-ins are read in order and
# the last BOOT_ORDER wins, so an earlier-sorting name is a silent no-op.
rm -f /etc/limine-entry-tool.d/dell-xps-panther-lake.conf
cat > /etc/limine-entry-tool.d/zz-dell-xps-panther-lake.conf <<'EOF'
# Prefer Omarchy kernels while keeping other kernels available for recovery
BOOT_ORDER="linux-omarchy-*, *, *fallback, Snapshots"
EOF
fi