Neal Becker wrote:
I have f21 installed on btrfs. I wonder what's a good procedure
to use
fedup along with btrfs snapshot, so that I can backout to f21 if I don't
like it?
Right now I have:
sudo btrfs sub list /
ID 257 gen 67442 top level 5 path root
ID 318 gen 67442 top level 5 path home
-- /etc/fstab
UUID=93c586fa-6d86-4148-a528-e61e644db0c8 / btrfs
subvol=root 0 0
UUID=93c586fa-6d86-4148-a528-e61e644db0c8 /home btrfs
subvol=home 0 0
UUID=e907e423-4282-4ca9-a873-b544d17d34b9 /boot ext4
defaults 1 2
UUID=b0cde31d-3694-4b98-ad90-e28c7d35a869 swap swap
defaults 0 0
I think this may be all I need:
sudo mount /dev/sda3 /mnt
[nbecker@nbecker2 ~]$ ls -l /mnt
total 0
drwxr-xr-x. 1 root root 14 Jun 1 18:46 home
dr-xr-xr-x. 1 root root 172 Jun 2 09:39 root
[nbecker@nbecker2 ~]$ sudo btrfs sub snap /mnt/root /mnt/root-f21
Create a snapshot of '/mnt/root' in '/mnt/root-f21'
[nbecker@nbecker2 ~]$ ls -l /mnt
total 0
drwxr-xr-x. 1 root root 14 Jun 1 18:46 home
dr-xr-xr-x. 1 root root 172 Jun 2 09:39 root
dr-xr-xr-x. 1 root root 172 Jun 2 09:39 root-f21
So now I have a snap of f21 root in in root-f21 subvol, and I should be able
to rollback by editing grub.cfg and /etc/fstab to point to root-f21 subvol
instead of root subvol, correct?
--
Those who fail to understand recursion are doomed to repeat it