Fresh BTRFS install of Fedora 44 KDE: Help required for configuring snapshots

Fresh off the boat here. Absolute beginner going… somewhat… expert mode so I have snapshots for when I screw up and I can roll back, instead of reinstalling…every…damn…time…

I’ve followed tightly the SysGuide’s tutorial. Installation went fine. Partitions are done right. No issues whatsoever through that part.

I’m at this point now in the guide:

Finally, list all available Btrfs subvolumes:

$ sudo btrfs subvolume list /
ID 256 gen 99 top level 5 path root
ID 257 gen 99 top level 5 path home
ID 258 gen 22 top level 5 path opt
ID 259 gen 95 top level 5 path cache
ID 260 gen 99 top level 5 path log
ID 261 gen 95 top level 5 path spool
ID 262 gen 99 top level 5 path tmp
ID 263 gen 95 top level 5 path containers
ID 264 gen 78 top level 5 path flatpak
ID 265 gen 95 top level 5 path gdm
ID 266 gen 95 top level 5 path libvirt
ID 267 gen 95 top level 256 path var/lib/machines

The final subvolume, var/lib/machines, is automatically created by systemd. It is used for managing lightweight containers and portable services through tools such as systemd-nspawn. Even if these features are not currently in use, the dedicated subvolume helps isolate container-related system state and improves future flexibility.

Except I don’t have that “var/lib/machines” subvolume created by the Fedora installer somehow.

How should I proceed?

Mind you this is my the second time I’m installing Fedora as the first, I screwed up badly (following Google advices… yep…) to a point OS couldn’t even boot past the boot logo… Anyways…

I have created documentation on how to do it

I’ve set it up already following SysGuide’s tutorial and everything seems to work fine so far. Thanks tho.

It worked fine for some time…

Had to roll back to a snapshot through GRUB, however when I attempted to apply the rollback, BTRFS not only failed to load the config for root when opening, but also gave me a warning that I should reference /home by path instead of subvolid.

I’ve looked around the web about this, couldn’t come through anything how to do it so I decided to skip past the warning and still restore the snapshot.

Everything went well. BTRFS Assistant now works as normal. But still I have to fix /home in fstab so restoration goes smooth without warnings.

What’s the process here?

My partitions are nested like this:

/
/opt
/cache
/log
/etc, etc, similar to how they are in the SysGuide
/home

TLDR: How to change “subvolid=5” on /home in fstab to “subvol=home” without breaking the system? It surely isnt as easy as removing “id” from there and replacing the number with “home”…

It’s very similar to this

Exact same guide I followed all along but having /home on a separate partition causes issues with restoration. And there are no other guides which focus on home being separate partition rather subvolume of root.

I can easily play with fstab and experiment but doing so I can break everything to a point I even break snapper…

Asked here and there and I’ll wait if someone responds. Else I have no other option to experiment…

In most cases you won’t need it; /var/lib/machines is the default location for storing nspawn images and perhaps other container images. If you don’t have any of these or even don’t know what they are, you can ignore that you don’t have that subvolume.