Bug 1275409
Summary: | [RFE] cloud-init support package_reboot_if_required | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Aleksandar Kostadinov <akostadi> |
Component: | cloud-init | Assignee: | Major Hayden 🤠<mhayden> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | high | ||
Version: | rawhide | CC: | apevec, gholms, Jan.van.Eldik, mattdm, p, shardy, s |
Target Milestone: | --- | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-08-21 19:29:52 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Aleksandar Kostadinov
2015-10-26 20:25:16 UTC
This seems important for Atomic, too, which _always_ requires a reboot. Debian packages indicate that a reboot is necessary by creating /var/run/reboot-required. If cloud-init detects that file after it finishes installing packages it immediately reboots the system. Fedora doesn't have that file, but one route we could take is to instead run the ``tracer'' command and see if it complains about anything that needs to be restarted. Some quick testing suggests that its exit code reflects whether a reboot is necessary or not, but I am somewhat hesitant to go that route, lest crashes cause boot loops. That does bring in a couple more dependencies, but they're relatively lightweight. Thoughts? I would appreciate if we can force reboot when we want. And implementation of auto-guess system, not important so much. This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component. Opened an RFE upstream to see if tracer can write the /var/run/reboot-required file: https://github.com/FrostyX/tracer/issues/195 Kudos to the tracer team as they made a PR to get this working in tracer! 🎉 https://github.com/FrostyX/tracer/issues/195#event-9279013791 PR made to kickstart: https://pagure.io/fedora-kickstarts/pull-request/968 This is currently in F39/F40 and it works! 🎉 |