I love schnapps for creating snapshots.
I have thought to use it for my Arch Linux Laptop too.
First you have to move the rootfs to @
btrfs subvolume snapshot / /@
Now edit /@/etc/fstab and set subvol=@
Example:
UUID=<long-uuid> / btrfs rw,relatime,ssd,space_cache,subvol=@
mount our new root filesystem somewhere, mount the relevant fileystems (dev, sys, proc, boot if you have it), chroot to it and update grub:
mount -o subvol=@ /dev/mapper/lvm-root /media/temporary
cd /media/temporary
mount -o bind /dev dev
mount -o bind /sys sys
mount -o bind /proc proc
mount -o bind /boot boot
chroot .
grub-mkconfig -o /boot/grub/grub.cfg
exit
Get schnapps
wget https://gitlab.labs.nic.cz/turris/misc/raw/master/schnapps/schnapps.sh
move it to /usr/local/bin and edit it
mv schnapps.sh /media/temporary/usr/local/bin/schnapps
vim /media/temporary/usr/local/bin/schnapps
Change ROOTDEV to your root device
Example:
ROOTDEV="/dev/mapper/lvm-root"
Save, quit and reboot
You can now mount the actual root somewhere to remove all its contents aside of the @ subvolume.
Example:
mount /dev/mapper/lvm-root /mnt/btrfs-root
Now you can use schnapps on Arch Linux as you do on your beloved Turris
I hope this post isn’t to off topic for this forum.