You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spec: Enable bootloader-update.service on boot - #1180
Installing the RPM shipped the unit but never enabled it, so
bootloader-update.service did not run on boot
Ship a systemd preset that enables the service and wire up the
standard scriptlets to apply it
Also, order the unit after /sysroot is mounted
Signed-off-by: Pragyan Poudyal <[email protected]>
The systemd preset enables bootloader-update.service. The service requires /sysroot to be mounted before it starts. The Makefile and RPM package install the preset, and RPM scriptlets invoke systemd lifecycle macros for the service.
Changes: Boot-time service activation
Layer / File(s)
Summary
Configure boot-time service activation systemd/bootloader-update.service, systemd/70-bootupd.preset
The service unit adds RequiresMountsFor=/sysroot. The preset enables bootloader-update.service and describes its boot-time role.
Install and package the preset Makefile, contrib/packaging/bootupd.spec
The Makefile installs the preset under the system preset directory. The RPM package includes the preset and invokes systemd post-install, pre-uninstall, and post-uninstall macros for the service.
coreos/bootupd#1163: Adds a skip path for systems without a block device backing /boot or /sysroot; its smoke test checks the service behavior when it runs at boot.
Suggested reviewers:cgwalters
Merge Risk: Minimal · up to 8c23e
This change enables the bootloader update service at boot through a shipped preset and standard RPM scriptlets, and orders it after /sysroot is mounted. In the repository's supported image-based deployments the service is enabled on a fresh install. An in-place RPM upgrade of an existing disabled service would not be re-enabled, but nothing shows that this is a supported path. No concrete merge-blocking risk remains.
Pre-merge checks: 5 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Commit Message Convention
The only non-merge commit is spec: Enable bootloader-update.service on boot. The spec subsystem is acceptable, and Enable is imperative, but the description starts with uppercase E, not a lowe…
Amend the commit subject to spec: enable bootloader-update.service on boot with no trailing period.
Passed checks: 5 passed
Check name
Status
Explanation
Title check
The title "spec: Enable bootloader-update.service on boot" follows the subsystem-prefixed, lowercase-after-colon format and describes the main change. The PR enables the service at boot through a ship…
Description check
The description states the problem: installing the RPM shipped the unit but did not enable it, so bootloader-update.service did not run on boot. It also says the PR ships a systemd preset and wires up…
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "spec: Enable bootloader-update.service on boot" follows the subsystem-prefixed, lowercase-after-colon format and describes the main change. The PR enables the service at boot through a shipped systemd preset and the RPM scriptlets, and the spec file change is part of that work. The title is a little narrow because it names only the spec file, while the changeset also touches the Makefile, the preset, and the unit file. It still clearly summarizes the main objective.
Full details: Description check
Explanation
The description states the problem: installing the RPM shipped the unit but did not enable it, so bootloader-update.service did not run on boot. It also says the PR ships a systemd preset and wires up the standard scriptlets, and it notes the unit ordering change after /sysroot is mounted. All of these match the changeset.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (4 skipped: 4 unsupported.)
Full details: Commit Message Convention
Explanation
The only non-merge commit is spec: Enable bootloader-update.service on boot. The spec subsystem is acceptable, and Enable is imperative, but the description starts with uppercase E, not a lowercase letter.
Resolution
Amend the commit subject to spec: enable bootloader-update.service on boot with no trailing period.
Finishing Touches
🧪 Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
The reason will be displayed to describe this comment to others. Learn more.
🔇 Additional comments: 1
contrib/packaging/bootupd.spec-79-79: 1
79-79: Major · Functional Correctness · Heavy lift
⚠️Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Apply the preset when upgrading existing installations.
%systemd_post applies the preset only on initial installation. An upgrade from the previous RPM leaves an existing disabled service disabled, so bootloader updates still do not run at boot. (raw.githubusercontent.com)
Add a one-time upgrade migration that respects administrator preset policy and masked units.
Reviewing files that changed from the base of the PR and between a100a09 and 8c23ec0.
Files selected for processing: 4
Makefile
contrib/packaging/bootupd.spec
systemd/70-bootupd.preset
systemd/bootloader-update.service
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Installing the RPM shipped the unit but never enabled it, so bootloader-update.service did not run on boot
Ship a systemd preset that enables the service and wire up the standard scriptlets to apply it
Also, order the unit after /sysroot is mounted