I have been using btrfs on my rootfs for quite a while and one of the ways I am using it is that I always do upgrades in a snapshot of root and when upgrade is done I use that as new root. In btrfs this is very simple.
I have my root in /mnt/btrfs/root
I make the snapshot as /mnt/btrfs/root-upgrade, I chroot into this an perform the upgrade.
When I am done I simple rename the dirs;
mv root root-fallback
mv root-upgrade root
Nothing is changes on my system and as mount with -o subvol=root applies to the subvolume named root at the specific point in time when mount runs I will simply enter the upgraded system.
Question is; can I do something similar in zfs?
Is there a way to make zfs use another name or mountpoint next time I boot but not directly?
Question
erikr
Hi,
I have been using btrfs on my rootfs for quite a while and one of the ways I am using it is that I always do upgrades in a snapshot of root and when upgrade is done I use that as new root. In btrfs this is very simple.
I have my root in /mnt/btrfs/root
I make the snapshot as /mnt/btrfs/root-upgrade, I chroot into this an perform the upgrade.
When I am done I simple rename the dirs;
mv root root-fallback
mv root-upgrade root
Nothing is changes on my system and as mount with -o subvol=root applies to the subvolume named root at the specific point in time when mount runs I will simply enter the upgraded system.
Question is; can I do something similar in zfs?
Is there a way to make zfs use another name or mountpoint next time I boot but not directly?
Regards,
Erik
Link to comment
Share on other sites
3 answers to this question
Recommended Posts