After update of Fedora Workstation to version 33 I wanted to also update the toolbox container to version 33 (from 32). I tried running:
$ sudo dnf system-upgrade download --releasever=33 $ sudo dnf system-upgrade reboot
but the last command returned:
System has not been booted with systemd as init system (PID 1). Can't operate.
I guess this is because the container does not run systemd and is not booted in the same way as the host?
I managed to update the packages though by using:
$ sudo dnf system-upgrade upgrade --releasever=33
But the problem I have now is that the
filesystem package didn’t get upgraded and
sudo dnf upgrade filesystem always fails with:
Error: Transaction failed
Also the rpm operations are printing warnings:
warning: Found bdb Packages database while attempting sqlite backend: using bdb backend.
I tried to fix it with
sudo rpmdb --rebuilddb but I get:
error: failed to replace old database with new database! error: replace files in /var/lib/rpm with files from /var/lib/rpmrebuilddb.7504 to recover
I also can’t manually copy the files. I guess because this is part of the container image?
Otherwise everything seems to work OK, but it doesn’t look like a clean upgrade. What I want to ask is if there is a normal way to upgrade Fedora inside a container or maybe just swap the base image with a new one?
Or is the only option to create a new container with F33 as base and reinstall the packages from the old container?