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

+9
View File
@@ -0,0 +1,9 @@
# Install the default kernel before hardware setup pulls in DKMS modules.
# On a fresh T2 install linux-t2 is not installed yet, so also check the chip.
if [[ $(uname -m) == "x86_64" ]] && ! omarchy-pkg-present linux-t2; then
pci_devices=$(lspci -nn)
if ! grep "106b:180[12]" <<< "$pci_devices" >/dev/null; then
echo "Installing the Omarchy kernel..."
omarchy-pkg-add linux-omarchy linux-omarchy-headers
fi
fi