classy-giraffe / easy-arch

Script for boostrapping Arch Linux with BTRFS, snapshots and LUKS encryption (UEFI only).
https://classy-giraffe.github.io/easy-arch
Apache License 2.0
226 stars 49 forks source link

Problem with snapshots subvolume #27

Closed pm4rcin closed 2 years ago

pm4rcin commented 2 years ago

Hi, I saw that you first create the subvolume .snapshots, mount it and later on you create the snapper config and delete the subvolume and create a directory .snapshots and mount that directory. Are this correct steps for setting up snapper or did you write too many lines? I'm asking seriously since it's new to me so I could not be familiar with the steps.

classy-giraffe commented 2 years ago

Yes it works like that, that step is needed in order to make snapper work (it will take care of recreating the subvolume).

pm4rcin commented 2 years ago

Oh so basically after you create the subvolume it is mounted and written to fstab. And then you delete it so snapper could recreate it and you mount all subvolumes again because they are on fstab. Another question since you create snapper config with --no-dbus. What's the reason for that option if you could explain?

classy-giraffe commented 2 years ago

Essentially because we're working in a chroot environment, check this issue. If you were in a booted environment, you wouldn't need to add --no-dbus flag.