Rebase to image cannot finalize deployment

I tried rebasing to my own image and later to bluefin with this command:

rpm-ostree rebase ostree-unverified-registry:ghcr.io/jak2k/jak2k-os:latest

After rebooting, this was displayed in the journal:

Copying /etc changes: 25 modified, 0 removed, 79 added
Copying /etc changes: 25 modified, 0 removed, 79 added
bwrap: execvp semodule: No such file or directory
error: Finalizing deployment: Finalizing SELinux policy: failed to run semodule: Child process exited with code 1
ostree-finalize-staged.service: Control process exited, code=exited, status=1/FAILURE

I could be wrong, but it looks like you’re using the BlueBuild Template. If that’s the case, I’m personally not familiar with this particular way of building a custom Fedora container image and can’t assist. Folks in the BlueBuild project support channels will likely be more acquainted with the template.

Yes, I’m using the template but rebasing to bluefin failed too.

I’m not familiar with the Bluefin image, but as I mentioned, chances are the Universal Blue community is more knowledgeable on this topic.

Did you try to reboot and update ostree? I had similar issue with SELinux recently, simply rebooting fixed it.

Did you remove SELinux tools in your image?

I rebooted multiple times and did not remove any tools.