Skip to content

Commit

Permalink
aboot/fs_boot: Allow Windows Phone partitions to be scanned
Browse files Browse the repository at this point in the history
  • Loading branch information
TravMurav committed Mar 21, 2022
1 parent 6f3c07a commit 447bf99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/aboot/fs_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ static const char *bootable_parts[] = {
"cache",
"userdata",
"rootfs",
"MainOS",
"Data",
};

static bool fsboot_bootable_part(char *label)
Expand Down
4 changes: 3 additions & 1 deletion lib/partition/partition.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ int partition_publish(const char *device, off_t offset)
* Scan some devices recursively to publish them. */
if (strcmp(name, "system") == 0
|| strcmp(name, "userdata") == 0
|| strcmp(name, "rootfs") == 0)
|| strcmp(name, "rootfs") == 0
|| strcmp(name, "MainOS") == 0
|| strcmp(name, "Data") == 0)
partition_publish(subdevice, 0);

count++;
Expand Down

0 comments on commit 447bf99

Please sign in to comment.