I am trying to configure snapper using btrfs subvolumes. I notice that there are no .snapshots subvolumes created automatically, and it leads to errors like below, when trying to create a snapshot.
IO Error (open failed path:/srv/.snapshots errno:2 (No such file or directory)).
According to snapper documentation, .snapshots subvolumes would be created by the “snapper create-config” command. But on NixOS, there is configuration to define this and I think it is not intended to create config using this command.
Am I supposed to create the .snapshots subvolumes manually?
Or should NixOS package for snapper take care of that?
Let’s say you have / on ext4 and then /home as btrfs. As long as the subvolume you are trying to create is under /home it should work.
Or maybe I’m just misunderstanding what you are trying to do.
v
Create a subvolume if the path does not exist yet, the file system supports subvolumes
(btrfs), and the system itself is installed into a subvolume (specifically: the root
directory / is itself a subvolume). Otherwise, create a normal directory, in the same
way as d.
My understanding is that when / is ext4 it will create a regular directory.