Before upgrading to Fedora 25 I did a btrfs subvolume snapshot / /f24. I hat to little free space, so the update failed. Now the question is, how to revert the snapshot? I already booted into the snapshot by editing grub.cfg (setting rootflags=subvol=root/f24).
this guy says to just
btrfs subvolume delete root. But I'm not sure if grub2 will regenerate a bad grub.cfg on the next kernel update. Alsodelete rootsounds like arm -rf /like operation.This guy used rsync to just copy over the data from the snapshot to the root. I'm sure it works, but its a 2013 answer and I assume there is a better way to just revert the snapshot.
I've found a couple of times to "just use
mv", usually together withapt-btrfs-snapshot. It just doesn't sound likemv /f24 /will really work. (If it does, please correct me.)
In the End, the reverted snapshot should of course be named root again and not root/f24. Here is some info on the FS:
$ btrfs subvolume list /
ID 257 gen 419417 top level 5 path root
ID 3231 gen 419430 top level 257 path root/f24
Booted into the snapshot:
$ btrfs subvolume show /
/
Name: f24
UUID: b1782609-7d9f-4725-911d-428cda2256c7
Parent UUID: 8df6fae9-770a-4d55-a4bf-6a32edf1fbd7
Received UUID: -
Creation time: 2016-11-26 19:17:22 +0200
Subvolume ID: 3231
Generation: 419438
Gen at creation: 411444
Parent ID: 257
Top level ID: 257
Flags: -
Snapshot(s):
Is there a 2016 way to do this?