I have been playing around with creating a very basic bootc image based off Almalinux. I have my public repo here, and I am using the following kickstart file to provision the bare-metal machine.
I can boot the machine without any problem, however eventually the rpm-ostreed-automatic timer starts the rpm-ostreed-automatic service, which starts the rpm-ostreed and that will error out with the following:
May 04 18:06:02 alma-test systemd[1]: Starting rpm-ostree System Management Daemon...
May 04 18:06:02 alma-test rpm-ostree[7001]: Reading config file '/etc/rpm-ostreed.conf'
May 04 18:06:02 alma-test rpm-ostree[7001]: error: Couldn't start daemon: Error setting up sysroot: /var/lib/rpm must be a symbolic link
May 04 18:06:02 alma-test systemd[1]: rpm-ostreed.service: Main process exited, code=exited, status=1/FAILURE
May 04 18:06:02 alma-test systemd[1]: rpm-ostreed.service: Failed with result 'exit-code'.
May 04 18:06:02 alma-test systemd[1]: Failed to start rpm-ostree System Management Daemon.
So I’m not exactly sure the best way of handling the rpm-ostreed config… any help would be super appreciated!
I know that this is from almalinux, but was suggest to post here for support:
I have a fedora version that I can test with has the same issue, but the alma is one I was testing with over the weekend
As you already mentioned, this forum is more appropriate to ask about Fedora/CentOS based bootable containers. I would suggest trying to build a simple (or without any customizations) container image based on Fedora bootc, install it, and see if the issue is still there.
Also, out of curiosity, what approach and tools did you use (using the Kickstart file) to create the disk image and install it on the bare metal machine?
So I was able to able to determine that is an issue with the enterprise linux 9.5, both rhel and alma, show the issue when trying start the rpm-ostreed service…
When I manually create the symbolic link, (and before cleaning out the existing /var/lib/rpm), it is happy… very strange
I see rm -rf /var/{cache,log} /var/lib/{dnf,rhsm} in your Containerfiles. I’m not sure if it’s relevant and it’s just a wild guess, but could you try something like the following at the end of your Containerfiles to see if that would solve the issue?
Well, I would say silly or not, as long as it works and doesn’t break anything, it would probably be good enough. I would also suggest keeping the cleanup and especially the bootc container lint command as it is very useful.
Yes sir, I will probably leave it as for now, because it is working; having read more on bootc website and the fedora docs, having the lint command is very important.