-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ostree-finalize-staged.service takes much longer on reboot than 'ostree admin finalize-staged' #3347
Comments
Can you paste a bit of the output from the journal? The two big possible culprits are grub2-mkconfig and selinux policy recompilation. |
Of course. I just had an update that took about 3 minutes to reboot after updating. I took logs from that here (in reversed chronology):
I can't tell what's happening in that 2min gap between 13:30 and 13:32. I then rolled back and updated once again, then ran
I suspected some SELinux relabeling problem before I opened this issue so I had already checked against the default policy and reset everything but the problem has persisted. |
I've been messing with this a bit more and I think the issue is actually unrelated to ostree, it just happened to be expressed as a hanging ostree-finalize-staged service on shutdown. A botched tuned profile was improperly setting some sysctl values and that seems to have caused the issues. |
For at least several weeks, probably months, anytime I have an update on my laptop, my system hangs on ostree-finalize-staged.service for about 5 or 6 minutes before it will reboot, even for incredibly small changes like editing a kernel parameter with 'rpm-ostree kargs --editor.'
If I perform an update and manually run 'ostree admin finalize-staged' it takes maybe 5 or 10 seconds and then the reboot is very fast. I don't see any obvious errors in my journal and haven't been able to figure out what exactly would be taking so long on reboot that wouldn't be an issue when run manually.
The text was updated successfully, but these errors were encountered: