Re:SUSE to Go Private
by LanternLight83 on Thursday August 17, 2023 @08:51PM
(#37170261)
ooo, that auto rollback sounds really cool-- got any idea how that's done? I assume it's handled by checking for eg. a dirty-fs-flag just before the initfs boots the real system, but what if there's breakage in userspace (eg. the login manager) or in the initramfs itself?
[ Parent
| on HN ]
Snapper creates a Btrfs snapshot before any change in the root filesystem. If something breaks, you choose an older snapshot to boot from via grub.
By a bizzare coincidence, I just had a breaking update today. CUPS was missing some symbols and wouldn't start. Rolled back to an earlier snapshot and all is well.
Re:SUSE to Go Private
by badsectoracula on Friday August 18, 2023 @02:30AM
(#37171990)
I have to say, openSUSE introduced me to btrfs and while it isn't something i use often, when i do need the snapshot functionality it provides it is such a great feature.
The automatic snapshots saved me quite a lot to time on 2 occasions, where borked updates of the nVidia drivers resulted in problems booting the computer. On one hand, this should never happen. On the other, as long as nVidia does not improve, and nothing is going to force them, it is great to have such a safety net. It gets out of the way 99% of the time, but it is there when you need it, it’s great.
That's why Fedora also switched to this BTRFS snapshot model last year.
It's slower than ext4, but much easier to rollback.
I got burned by debian btrfs upgrades, so I'll stay with ext4 though.
Re:SUSE to Go Private
by LiamPowell on Friday August 18, 2023 @12:49AM
(#37171500)
To add to the SP, the initramfs is kept on the same filesystem as everything else by default, not on a separate partition, so the initramfs is loaded from the snapshot too. However if GRUB breaks then you won't be able to boot.