-reflink is forked from the original hook.
It uses cp --reflink
to copy modules, saving time and space for Btrfs.
Tired of missing modules when updating the kernel?
Annoyed by modprobe: FATAL: Module smth not found in directory /lib/modules/new-kernel
?
Losing uptime after reboots due to kernel update?
The solution is here.
Do not worry, backups are automatically cleaned.
$ ${your_aur_helper} -S kernel-modules-hook-reflink
# Or from git:
$ git clone https://github.com/lideming/kernel-modules-hook.git kmh
$ cd kmh
$ makepkg -sci
$ sudo systemctl daemon-reload
$ sudo systemctl enable linux-modules-cleanup