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

find-mmc-bypartlabel: test for cases where the disk is on mmcblk1 #20

Merged
merged 1 commit into from Aug 23, 2022
Merged

Conversation

NotKit
Copy link
Contributor

@NotKit NotKit commented Aug 23, 2022

Few devices have internal storage labeled by kernel as mmcblk1. Adding it to search path may allow for SD card boot in some rare cases, however it should not happen if internal storage is functioning and has required partition as it is checked first.

Copy link
Contributor

@Thaodan Thaodan left a comment

Choose a reason for hiding this comment

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

Please change the commit message to be similar to:

1ca3150

@Thaodan
Copy link
Contributor

Thaodan commented Aug 23, 2022

I'm not sure if that's the right change because this could break in case of race conditions.

[find-mmc-bypartlabel] Test for cases where the disk is on mmcblk1. Contributes to JB#58522.

Few devices have internal storage labeled by kernel as mmcblk1.
Adding it to search path may allow for SD card boot in some rare
cases, however it should not happen if internal storage is
functioning and has required partition as it is checked first.
@NotKit NotKit changed the title find-mmc-bypartlabel: include mmcblk1p* in partition search find-mmc-bypartlabel: test for cases where the disk is on mmcblk1 Aug 23, 2022
@NotKit
Copy link
Contributor Author

NotKit commented Aug 23, 2022

It should be quite unlikely to suffer from race conditions as on devices with mmcblk0 the internal storage gets detected first every time (hence numbered as 0), so you can't get mmcblk1 to appear earlier than mmcblk0.

@mkosola
Copy link
Contributor

mkosola commented Aug 23, 2022

Tested on Jolla C with sd-card (both mmcblk0 and mmcblk1 present)

@mkosola mkosola merged commit 740bd98 into sailfishos:master Aug 23, 2022
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.

None yet

3 participants