Skip to content

ubports: Filter wrongly matching partitions from upgrader#30

Open
fredldotme wants to merge 1 commit intohalium-11.0from
halium-11.0-nosystemext
Open

ubports: Filter wrongly matching partitions from upgrader#30
fredldotme wants to merge 1 commit intohalium-11.0from
halium-11.0-nosystemext

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 Flohack74 and NotKit July 4, 2022 10:58
# 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 :)

@fredldotme
Copy link
Collaborator Author

Since this is in use by the Fairphone 4, we should really aim for merging this. Will be important once we fetch recovery-ramdisk.img from CI.

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