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

ubports: Filter wrongly matching partitions from upgrader #30

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

Conversation

fredldotme
Copy link
Collaborator

/system_ext seldomly is the partition we want to flash with
a system-image, so filter it out and let the right dm-N device
take it's sole place for system-image-upgrader to do its job.

Change-Id: Ieca4e433d23574b82dc62c5368eed9dd93bfd1f5

/system_ext seldomly is the partition we want to flash with
a system-image, so filter it out and let the right dm-N device
take it's sole place for system-image-upgrader to do its job.

Change-Id: Ieca4e433d23574b82dc62c5368eed9dd93bfd1f5
@fredldotme fredldotme requested review from NotKit and Flohack74 July 4, 2022 10:58
@@ -279,7 +279,7 @@ USE_SYSTEM_PARTITION=1
# However, do not use the block device name in the kernel command line, as that is not consistently
# named in booting normal and recovery modes. Expect fstab to have a system mountpoint or use a fallback.
if [ "$USE_SYSTEM_PARTITION" -eq 1 ];then
SYSTEM_PARTITION=$(grep "^[^#]" /etc/fstab | grep -e "\(/mnt\)*/system\(_root\)*" | cut -f 1 -d\ )
SYSTEM_PARTITION=$(grep "^[^#]" /etc/fstab | grep -v "/system_ext" | grep -e "\(/mnt\)*/system\(_root\)*" | cut -f 1 -d\ )
Copy link
Member

Choose a reason for hiding this comment

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

Can you merge this with the check for system_root behind?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tried and failed, which is why I did the filtering in between.

Copy link
Member

Choose a reason for hiding this comment

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

Should we merge this some day :)

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