Commit Graph
5 Commits
Author SHA1 Message Date
davidandClaude Opus 5.5 1e2581dcc5 Keep the running kernel's modules after a kernel upgrade
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>
2026-11-26 18:41:50 -07:00
davidandClaude Opus 5.5 5d7db2cdc8 Offer to reboot at the end of an install or update that needs one
shellcheck / shellcheck (push) Failing after 13s
update already said "Please reboot when convenient" after a new kernel,
firmware, microcode, NVIDIA driver, systemd or glibc. It now ends by
asking "Reboot now? [y/N]", after the offer to send a failed step's
log. 99-reboot-check.sh records that a reboot is needed, and update
clears that before its steps run, so an earlier update's reboot isn't
offered. Under script(1), the copy outside reboots once the log is
cleaned up. Never asked without a terminal, or when the initramfs
failed to rebuild.

install asks the same when it brought in a newer kernel.

Both reboot with systemctl, like the system menu's restart: sudo's
cached password belongs to another terminal by then.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 06:17:53 -07:00
david 63d56da089 reboot messages 2026-10-26 14:10:47 -06:00
david 0905f858a9 numerous updates 2026-10-21 08:33:19 -06:00
david a65f07c22e fix update 2026-10-19 13:56:54 -06:00