Document pacman hook that symlinks old kernel modules

Fixes #24.
This commit is contained in:
Wes Barnett 2019-03-07 17:10:10 -05:00
parent 5dac095982
commit d97065a2e4
No known key found for this signature in database
GPG key ID: 1070BCC98C18BD66

View file

@ -228,6 +228,21 @@ something like the following:
.EE
.SS How do I link old kernel modules?
This behavior is no longer a part of this package. Use a pacman hook like the following:
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = linux
[Action]
Description = Symlinking old kernel modules...
When = PostTransaction
Exec = /usr/bin/bash -c "find /usr/lib/modules -xtype l -delete; ln -sv /.snapshots/$(snapper -c root list | awk 'END{print $1}')/snapshot/usr/lib/modules/$(uname -r) /usr/lib/modules/"
.SH HOMEPAGE
https://github.com/wesbarnett/snap-pac