From 1756864129321375da33f43f70ee4035da0c4fd0 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 25 Jul 2026 13:37:07 -0700 Subject: [PATCH] Swap the Panther Lake kernel in before the camera DKMS modules A fresh install on a Dell XPS 14 spent 73s in "Configuring system", and two silent gaps in the install log account for 66s of it. Both are the same redundant work. hardware/all.sh ran ipu7-camera.sh before ptl-kernel.sh. intel-ipu7-camera pulls in ipu7-drivers, vision-drivers and v4l2loopback, so DKMS compiled all three against the stock linux kernel and built a UKI for it. ptl-kernel.sh then installed linux-ptl, which recompiled the same three modules against the new kernel, and its pacman -Rdd of linux followed with three dkms removes and yet another UKI rebuild. The log shows four UKI builds where one would do, and everything the first script produced was deleted 42 seconds after it was made. Running the kernel swap first means the DKMS modules are only ever built against the kernel the machine actually keeps, which returns roughly 25s. ptl-kernel.sh still installs linux-ptl before removing linux, so one redundant UKI build for the stock kernel remains. Removing first would save it but would leave the machine with no kernel at all if the linux-ptl install failed, so the safe order stays. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_017q97Rsk8KwgaPUVq5ArLgM --- install/hardware/all.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/hardware/all.sh b/install/hardware/all.sh index 27e7e37c..9a9f1098 100644 --- a/install/hardware/all.sh +++ b/install/hardware/all.sh @@ -15,8 +15,12 @@ run_logged "$OMARCHY_INSTALL/hardware/vulkan.sh" run_logged "$OMARCHY_INSTALL/hardware/intel/video-acceleration.sh" run_logged "$OMARCHY_INSTALL/hardware/intel/lpmd.sh" run_logged "$OMARCHY_INSTALL/hardware/intel/thermald.sh" -run_logged "$OMARCHY_INSTALL/hardware/intel/ipu7-camera.sh" +# Swap in the Panther Lake kernel before anything pulls DKMS modules in. +# intel-ipu7-camera drags in ipu7-drivers, vision-drivers and v4l2loopback, +# and building all three against the stock kernel only to rebuild them against +# linux-ptl and tear the first set down again cost ~25s of the install. run_logged "$OMARCHY_INSTALL/hardware/intel/ptl-kernel.sh" +run_logged "$OMARCHY_INSTALL/hardware/intel/ipu7-camera.sh" run_logged "$OMARCHY_INSTALL/hardware/intel/fred.sh" run_logged "$OMARCHY_INSTALL/hardware/intel/fix-wifi7-eht.sh" run_logged "$OMARCHY_INSTALL/hardware/intel/sof-firmware.sh"