Request to backport systemd upstream PR #38776 to RHEL 10.
Upstream PR: https://github.com/systemd/systemd/pull/38776
Title: core/transaction: first drop unmergable jobs for anchor jobs
Fixes: GitHub issue #38765
Milestone: v258
Description:
This PR addresses a job conflict resolution issue during system initialization, specifically during the initrd-to-root transition.
Key Details:
- Conflicting jobs for systemd-repart.service and initrd-switch-root.target were not being resolved optimally
- Previously, job conflicts could lead to services not being properly stopped before root switching
- The change ensures that the most critical job (start of initrd-switch-root.target) is prioritized
- Affects job handling during system initialization
- Has potential impact on services enabled in initrd and after root switch
Labels from upstream: needs-stable-backport, pid1, please-review
Recommendation: Review and test to ensure proper job conflict resolution during system initialization.