blob: d3da95905d8464699af824e5ac2e4bde2f24d7ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# <p align="center">kernel-modules-hook<b>-reflink</b></p>
**-reflink** is forked from [the original hook](https://github.com/saber-nyan/kernel-modules-hook).
It uses `cp --reflink` to copy modules, saving time and space for Btrfs.
---
Tired of missing modules when updating the kernel?<br/>
Annoyed by `modprobe: FATAL: Module smth not found in directory /lib/modules/new-kernel`?<br/>
Losing uptime after reboots due to kernel update?
*The solution is here.*
* Save.<br/>
![Save](https://i.imgur.com/3YHtBRB.png)<br/>
* Update.<br/>
![Update](https://i.imgur.com/uxySEMY.png)<br/>
* Restore.<br/>
![Restore](https://i.imgur.com/AJeBw0n.png)<br/>
* Enjoy.<br/>
![Enjoy](https://i.imgur.com/WQAYSSR.png)
Do not worry, backups are automatically cleaned.
## Installation
[AUR link](https://aur.archlinux.org/packages/kernel-modules-hook-reflink/)
```bash
$ ${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
```
|