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?