From a8977c44338313404412580c33f374f7499fdc32 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 26 Jul 2026 10:53:18 -0700 Subject: [PATCH] Only show linux-ptl kernel when that's installed so we don't end up with two options on XPS --- install/hardware/intel/ptl-kernel.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/install/hardware/intel/ptl-kernel.sh b/install/hardware/intel/ptl-kernel.sh index 65de3c3b..79482724 100644 --- a/install/hardware/intel/ptl-kernel.sh +++ b/install/hardware/intel/ptl-kernel.sh @@ -5,10 +5,20 @@ if omarchy-hw-match "XPS" && omarchy-hw-intel-ptl; then echo "Detected Dell XPS Panther Lake, installing PTL kernel..." omarchy-pkg-add linux-ptl linux-ptl-headers - pacman -Rdd --noconfirm linux linux-headers 2>/dev/null || true + pacman -Rdd --noconfirm linux linux-headers || true + + # linux-ptl 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 linux-ptl:" + pacman -Qi linux | grep -i "required by" + fi mkdir -p /etc/limine-entry-tool.d - cat > /etc/limine-entry-tool.d/dell-xps-panther-lake.conf <<'EOF' + # 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' # Only show Panther Lake kernel in boot menu on Dell XPS Panther Lake BOOT_ORDER="linux-ptl*, *fallback, Snapshots" EOF