"Failed to finalize previous deployment" due to semodule

Hi! I've created my own image with BlueBuild (which has been a great experience so far!), and attempted to rebase to it. However, when I reboot my system, I'm still on the previous image, and when I run rpm-ostree status, I get this warning:
brage@brages-datamaskin:~$ rpm-ostree status
State: idle
Warning: failed to finalize previous deployment
error: Finalizing deployment: Finalizing SELinux policy: failed to run semodule: Child process exited with code 1
check `journalctl -b -1 -u ostree-finalize-staged.service`
Deployments:
[…]
brage@brages-datamaskin:~$ rpm-ostree status
State: idle
Warning: failed to finalize previous deployment
error: Finalizing deployment: Finalizing SELinux policy: failed to run semodule: Child process exited with code 1
check `journalctl -b -1 -u ostree-finalize-staged.service`
Deployments:
[…]
When running the suggested command, this is what I see:
brage@brages-datamaskin:~$ journalctl -b -1 -u ostree-finalize-staged.service
[…]
mars 18 21:39:31 brages-datamaskin ostree[9612]: error: Finalizing deployment: Finalizing SELinux policy: failed to run semodule: Child process exited with code 1
mars 18 21:39:31 brages-datamaskin systemd[1]: ostree-finalize-staged.service: Control process exited, code=exited, status=1/FAILURE
mars 18 21:39:31 brages-datamaskin systemd[1]: ostree-finalize-staged.service: Failed with result 'exit-code'.
mars 18 21:39:31 brages-datamaskin systemd[1]: Stopped ostree-finalize-staged.service - OSTree Finalize Staged Deployment.
[…]
brage@brages-datamaskin:~$ journalctl -b -1 -u ostree-finalize-staged.service
[…]
mars 18 21:39:31 brages-datamaskin ostree[9612]: error: Finalizing deployment: Finalizing SELinux policy: failed to run semodule: Child process exited with code 1
mars 18 21:39:31 brages-datamaskin systemd[1]: ostree-finalize-staged.service: Control process exited, code=exited, status=1/FAILURE
mars 18 21:39:31 brages-datamaskin systemd[1]: ostree-finalize-staged.service: Failed with result 'exit-code'.
mars 18 21:39:31 brages-datamaskin systemd[1]: Stopped ostree-finalize-staged.service - OSTree Finalize Staged Deployment.
[…]
Does anyone have any idea what the issue could be?
GitHub
GitHub - bragefuglseth/spraypaint
Contribute to bragefuglseth/spraypaint development by creating an account on GitHub.
Solution:
I was on an f42 beta system, and the new image was f41 based. Updating the image to f42 and then rebasing seems to have fixed things!
Jump to solution
5 Replies
Luke Skywunker
Oh man I've not seen that before @fiftydinar @RoyalOughtness have any of you seen this? Or know someone that would know what to do about it?
RoyalOughtness
previous image
what image? no but it looks selinux related so put me in coach my suspicion is that this is f42 related
Solution
Brage
Brage2w ago
I was on an f42 beta system, and the new image was f41 based. Updating the image to f42 and then rebasing seems to have fixed things!
RoyalOughtness
oh, nice
Luke Skywunker
Awesome!

Did you find this page helpful?