Put the snapper command directly in the README

This commit is contained in:
Le0xFF 2022-07-26 22:32:23 +02:00
parent e4d5743b5c
commit 7bc9febc25

View File

@ -140,11 +140,12 @@ Following the script, at the very end your drive will end up being like the foll
With this script, the `@snapshots` subvolume will be created, but not the `/.snapshots` folder. This is done to avoid stupid snapper issues when trying to create a configuration for `/`.
So after installing `snapper` from Void Linux's repositories and after [creating a configuration for `/`](https://wiki.archlinux.org/title/Snapper#Creating_a_new_configuration), you have to delete the subvolume that snapper will automatically create. After that create the `/.snapshots` folder and then uncomment the relative line from `/etc/fstab`:
So after installing `snapper` from Void Linux's repositories and after creating a configuration for `/`, you have to delete the subvolume that snapper will automatically create. After that create the `/.snapshots` folder and then uncomment the relative line from `/etc/fstab`:
``` bash
# run these commands as root
snapper -c root create-config /
btrfs subvolume delete /.snapshots
mkdir /.snapshots
## edit /etc/fstab uncommenting the line relative to @snapshots subvolume ##