Rollback guide: snapper snapshots, Btrfs, and upgrade self-rescue
Leave yourself an exit before upgrading, and you can upgrade boldly. F45’s default layout is already prepared for rollback; this page covers all three mechanisms.
First, which system are you on
Section titled “First, which system are you on”| System | Rollback mechanism | Section |
|---|---|---|
| btrfs install (Workstation default) | snapper snapshots | below |
| Atomic variants (Silverblue/Kinoite) | rpm-ostree rollback | the Atomic page |
| ext4 install | no system snapshots; backups only | the last-resort section |
Confirm the filesystem:
findmnt -no FSTYPE /Measured: F45’s default install is btrfs.
The default layout pre-provisions snapshots
Section titled “The default layout pre-provisions snapshots”Measured btrfs subvolume list /:
ID 257 ... path bootID 258 ... path homeID 259 ... path varID 261 ... path snapshots ← reserved for snapshotsThe snapshots subvolume exists because Anaconda plans for snapper from the start. Install it and create a config:
sudo dnf install -y snappersudo snapper create-config /sudo snapper listMeasured: create-config immediately records a current snapshot, and hourly timeline snapshots are already running (a timeline entry every hour).
snapper daily: create, list, delete
Section titled “snapper daily: create, list, delete”sudo snapper create --description "before-upgrade" # manual snapshotsudo snapper list # measured output:# │ Type │ Pre # │ Date │ User │ Cleanup │ Description7 │ single │ │ Oct 29 13:05 │ root │ │ before-upgradeDeletion (measured):
sudo snapper delete 7Create a before-upgrade entry before upgrading so you have a restore point. Combined with the upgrade flow:
sudo snapper create --description "pre system-upgrade 45→46"sudo dnf system-upgrade download --releasever=46sudo dnf system-upgrade reboot # boot into the offline transactionDiffs and file-level restore
Section titled “Diffs and file-level restore”sudo snapper diff 6..7 /etc/nginx/nginx.conf # changes to one file between snapshotssudo snapper undo 6..7 # undo everything between them (careful)sudo snapper undochange 6..7 /etc/nginx/nginx.conf # restore a single fileundochange is the workhorse: after an upgrade, roll back exactly the one broken config without touching anything else.
Atomic rollback (rpm-ostree)
Section titled “Atomic rollback (rpm-ostree)”Silverblue/Kinoite and every ostree system roll back natively:
rpm-ostree status # current and previous deploymentrpm-ostree rollback # make the previous deployment default, reboot into itA failed upgrade looks like “the new deployment won’t boot” — pick the previous entry in the boot menu, enter the old system, then delete the failed deployment. No snapshots needed; the deployment model keeps two copies by design. Details on the Atomic page.
The offline transaction and its logs
Section titled “The offline transaction and its logs”Upgrade transaction logs live in the target system’s /var/lib/dnf/system-upgrade/. A power cut mid-upgrade resumes the offline transaction on reboot:
sudo dnf system-upgrade status # current offline transactionsudo dnf system-upgrade log # past transaction logssudo dnf system-upgrade clean # discard the pending transaction (abort this upgrade)Last resort: ext4 users and beyond
Section titled “Last resort: ext4 users and beyond”- ext4 has no btrfs snapshots; before upgrading,
tarthe whole/etc, savednf history, and back up critical/homedata - system won’t boot: chroot in from live media,
dnf history undo last, or follow the troubleshooting page - truly unrecoverable: copy
/homeout from live media and reinstall — 45 minutes
Common traps
Section titled “Common traps”| Symptom | Cause |
|---|---|
snapper create-config / errors | root is not btrfs, or snapper not installed |
| snapshots eating disk | timeline retention is loose by default; tune TIMELINE_LIMIT_* or snapper delete |
service still broken after undochange | config rolled back but the process wasn’t restarted; systemctl restart it |
| software gone after rpm-ostree rollback | layered packages follow the deployment; use flatpak for those |
| power cut during offline upgrade | reboot resumes automatically; check system-upgrade status |
Related pages
Section titled “Related pages”- Upgrade decision — whether to upgrade at all
- 44→45 in practice — the upgrade steps
- Atomic desktops — the deployment model and rpm-ostree
- Upstream: snapper manual