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

halium: allow fallbacking to an eventual system image available inside the rootfs on "halium" file layouts #25

Open
wants to merge 1 commit into
base: halium
Choose a base branch
from

Conversation

g7
Copy link

@g7 g7 commented Jan 19, 2021

Some distributions (e.g. hybris-mobian) ship the Android system image inside the
rootfs image in userdata, thus breaking the the assumption that if rootfs.img exists,
a matching system image in userdata is present.

This commit reworks the image search inside identify_android_image() so that every supported
path is tested on "halium" file layouts. ANDROID_IMAGE is determined there now too, and
stores the real full path to the image.

Note: if the system image is available both in userdata and inside the halium rootfs,
the former is preferred.

Signed-off-by: Eugenio Paolantonio (g7) [email protected]

…e the rootfs on "halium" file layouts

Some distributions (e.g. hybris-mobian) ship the Android system image inside the
rootfs image in userdata, thus breaking the the assumption that if rootfs.img exists,
a matching system image in userdata is present.

This commit reworks the image search inside `identify_android_image()` so that every supported
path is tested on "halium" file layouts. ANDROID_IMAGE is determined there now too, and
stores the real full path to the image.

Note: if the system image is available both in userdata and inside the halium rootfs,
the former is preferred.

Signed-off-by: Eugenio Paolantonio (g7) <[email protected]>
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.

1 participant