Skip to content
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

prepare-root: Handle non-AB aboot properly #3231

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

alexlarsson
Copy link
Member

otcore_get_ostree_target() should set is_aboot for android boot systems, but currently it only does this on A/B boot systems, not single-boot-partition systems. Fix this by setting it in the second case.

otcore_get_ostree_target() should set is_aboot for android boot
systems, but currently it only does this on A/B boot systems, not
single-boot-partition systems. Fix this by setting it in the second
case.
@alexlarsson alexlarsson requested a review from ericcurtin April 15, 2024 18:13
Copy link
Collaborator

@ericcurtin ericcurtin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's three types of aboot I guess:

  1. Normal AB switching mode
  2. androidboot.slot_suffix=_a but no AB switching tool available, so we always boot into a
  3. similar to 2, but we have specified a root= karg, booting in development mode, causing androidboot.slot_suffix to not be set at all.

@ericcurtin ericcurtin enabled auto-merge April 15, 2024 19:47
@ericcurtin ericcurtin merged commit c8c436e into ostreedev:main Apr 15, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants