LukeShortCloud / rootpages

Root Pages is a collection of easy-to-reference tutorials and guides primarily for Linux and other UNIX-like systems.
Other
55 stars 6 forks source link

[unix_distributions][fedora] Upgrade Fedora on a SBC #1117

Open LukeShortCloud opened 5 months ago

LukeShortCloud commented 5 months ago

On a single-board computer (SBC), such as the Raspberry Pi, major Fedora upgrades can fail due to not having a battery for the BIOS. This causes issues such as the time resetting after every reboot which breaks Fedora upgrades.

As a workaround, (1) enable a NTP service that activates very early on and (2) use dnf distrosync to ensure all packages are from the correct Fedora release. Optionally disable delta RPMs which are deprecated and provide little to no benefit for upgrades.

$ sudo systemctl disable --now chrony
$ sudo systemctl enable --now systemd-timesyncd
$ sudo dnf --releasever=<FEDORA_MAJOR_VERSION_TO_UPGRADE_TO> --setopt=deltarpm=false distro-sync

https://www.mail-archive.com/arm@lists.fedoraproject.org/msg12995.html