-
Notifications
You must be signed in to change notification settings - Fork 4
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
refactor: boot_control: remove and not use the deprecated get_standby_boot_dir API #461
Merged
Bodong-Yang
merged 4 commits into
main
from
refactor/deprecate_special_treatment_to_boot_dir
Dec 20, 2024
Merged
refactor: boot_control: remove and not use the deprecated get_standby_boot_dir API #461
Bodong-Yang
merged 4 commits into
main
from
refactor/deprecate_special_treatment_to_boot_dir
Dec 20, 2024
Conversation
This file contains 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
…07, actually this API always returns boot_dir as <standby_slot_mnt>/boot
Bodong-Yang
added
the
refactor
Rewrite/remove related code instead of patching them
label
Dec 19, 2024
Quality Gate passedIssues Measures |
Bodong-Yang
deleted the
refactor/deprecate_special_treatment_to_boot_dir
branch
December 20, 2024 03:14
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Introduction
Note
This PR is split from the dev PR #453 .
This PR removes the deprecated boot_control API get_standby_boot_dir from boot_control implementations, as this API always returns
<standby_slot_mnt>/boot
since them.Since 20230907, each boot_control implementation will not expect files under /boot dir to be directly downloaded on separated boot partition anymore. Instead, all the files, including files under /boot folder, will be saved directly to standby slot, and then the boot_control implementation takes the responsibility to copy the required files at /boot folder to separate boot partitions if any at post-update stage.
Note that this PR doesn't change create_standby implementation, which still expects
boot_dir
param on init, but the behavior will not change as theboot_dir
param will still be provided with<standby_slot_mnt>/boot
.