This repository has been archived by the owner on Dec 30, 2019. It is now read-only.
forked from multirom-dev/multirom
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multirom: Support mounting booted external EXT4/F2FS
* When booting from an EXT4 or F2FS MicroSD / USB Drive, the external partition itself is not mountable and accessible from the Android userspace for media or data * External booted partition is mounted early for /system, /data and /cache, therefore e2fsck fails to check, and vold avoids mounting the 'corrupted' partition * Furthermore on CM/LineageOS based ROMs, external drives using EXT4 or F2FS are mounted with an sdcard context, which fails due to the superblock mounts mismatching the early MultiROM mount of the same partition * Work around this limitation from vold and external boots by flagging such a boot as an external_mount path, remove the fstab entry matching the external MicroSD or external USB, and finally mount the partition to a new 'external_multirom' folder inside the internal media storage under /data/media or /data/media/0 * Stores external mount paths and filesystem globally for later use upon Android mounts preparation Change-Id: Ifab658ac03a481b40b517a978621f25e09f8622b Signed-off-by: Adrian DC <radian.dc@gmail.com>
- Loading branch information
Showing
2 changed files
with
121 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters