blob: ef40b5ae1a59d82b976313a5826260ea49dc1b9d (plain
This is a set of pacman hooks and systemd units to preserve the running
kernel's modules during upgrades. If one upgrades the kernel but
doesn't reboot right away, any modules that were not loaded yet are
lost. Modules are often loaded dynamically due to hardware being
hotplugged at runtime (e.g. a USB device). While it's recommended to
reboot immediately after an upgrade, sometimes it's inconvenient. On
the next boot, any saved kernels are purged.
PreTransaction hook. Should be before 60 because of mkinitcpio-remove and dkms-remove.
PostTransaction hook. Should be after 70 because of dkms-install.
Where the modules are preserved
Pacman hook to save the running kernel
Pacman hook to link the running kernel back in to /usr/lib/modules/
Script to clean any saved kernels on the next boot
Runs cleanup on the next boot
Schedules the clean up