42 lines
1,008 B
ReStructuredText
42 lines
1,008 B
ReStructuredText
FAQ
|
|
===
|
|
|
|
.. toctree::
|
|
:maxdepth: 2
|
|
|
|
**Does snap-pac backup non-btrfs /boot partitions?**
|
|
|
|
No, but you can add a hook that does it for you. It would be something like the following:
|
|
|
|
.. code-block:: none
|
|
|
|
[Trigger]
|
|
Operation = Upgrade
|
|
Operation = Install
|
|
Operation = Remove
|
|
Type = Package
|
|
Target = linux
|
|
|
|
[Action]
|
|
Description = Backing up /boot...
|
|
When = PreTransaction
|
|
Exec = /usr/bin/rsync -avzq --delete /boot /.bootbackup
|
|
|
|
|
|
**How do I link old kernel modules automatically when the kernel is upgraded?**
|
|
|
|
This behavior is no longer a part of this package. Use a pacman hook like the following:
|
|
|
|
.. code-block:: none
|
|
|
|
[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/"
|