Keep the running kernel's modules after a kernel upgrade
shellcheck / shellcheck (push) Successful in 48s
shellcheck / shellcheck (push) Successful in 48s
install.sh failed whenever its upgrade replaced the kernel (Arch installed a few days earlier): pacman deletes the running kernel's modules, so Docker and then the firewall couldn't load theirs. The smoketest found it. kernel-modules-hook keeps them until the next reboot, and its cleanup service removes them after. install.sh installs it with archlinux-keyring, in a transaction of its own so its hooks run for the upgrade; packages.conf lists it and the service, so update adds them to existing machines. With the modules kept, a missing modules folder no longer means a newer kernel was installed, so newer_kernel_installed (utils.sh) also counts a folder no package owns, and the reboot check, version and finish-install use it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -111,6 +111,9 @@ MAINTENANCE=(
|
||||
gnome-extra
|
||||
gnome-keyring
|
||||
pacman-contrib
|
||||
# Keeps the running kernel's modules after a kernel upgrade, until a reboot
|
||||
# (install.sh installs it before anything else)
|
||||
kernel-modules-hook
|
||||
# Keeps the mirrorlist on up-to-date mirrors (system/mirrors.sh)
|
||||
reflector
|
||||
)
|
||||
@@ -164,6 +167,8 @@ SERVICES=(
|
||||
cups.service
|
||||
fwupd-refresh.timer
|
||||
gdm.service
|
||||
# kernel-modules-hook's: removes the old kernel's kept modules after a reboot
|
||||
linux-modules-cleanup.service
|
||||
NetworkManager.service
|
||||
reflector.timer
|
||||
sshd.service
|
||||
|
||||
Reference in New Issue
Block a user