Closed zic-github closed 2 years ago
You should be able to find the root of the issue in the logs from rpm-ostreed
after the reboot, right after the rebase.
Not sure what you mean.
I thought, during the shutdown, ostree-finalize-staged.service would run. And there, we see the error. And it wipes out the staged 36. Thus, when it goes booted, there is no 36 but the previous 35 comes up.
I forgot to add in the description but if I dare to add,
I see below error in messages during the shutdown.
May 22 07:03:15 Linux ostree[3396]: error: ostree-finalize-staged.service failed on previous boot: Child process exited with code 1
May 22 07:03:15 Linux systemd[1]: ostree-boot-complete.service: Main process exited, code=exited, status=1/FAILURE
May 22 07:03:15 Linux systemd[1]: ostree-boot-complete.service: Failed with result 'exit-code'.
May 22 07:03:15 Linux systemd[1]: Failed to start OSTree Complete Boot.
I don:t see nothing special for rpm-ostreed during the boot.
I would try:
I have 2 physical and 2 virtual machines. Only 1 out of those 4, I see the issue. Other 3 worked fine.
Finally, I gave up. Looks like for some reason, the selinux targeted policies are broken. I removed everything under /etc/selinux/targeted/active/modules/[124]00/ from both current and staged. And the rebase worked fine. After the rebase deployment booted, I copied over /etc/selinux/targeted/active/modules/[124]00/ from other machine.
Funny thing here is, I saw that AST error only when I tried the rebase. Even in that supposed broken environment, rpm-ostree upgrade worked fine in the same Fedora 35 environment.
Describe the bug I intentionally hit "ostree admin finalize-staged", I get an error as "Failed to resolve AST".
To Reproduce Please describe the steps needed to reproduce the bug:
Expected behavior "ostree admin finalize-staged" suceeds without any errors.
Screenshots If applicable, add screenshots to help explain your problem.
OS version:
Additional context Add any other context about the problem here.