When a kernel upgrade is taken in, we replace current modules with new ones and they are not available until we reboot. This can cause the system to appear broken, especially when plugging new hardwaare like a pen drive or odd input device. This patch adds kernel-modules-hook which keeps the current modules even if the package is replaced. A one-off clean-up service runs on startup to remove older modules.
5 lines
130 B
Bash
5 lines
130 B
Bash
echo "Install kernel-modules-hook"
|
|
|
|
omarchy-pkg-add kernel-modules-hook
|
|
sudo systemctl enable --now linux-modules-cleanup.service
|