From 72c87ce3472380ad16267be958923c1d2635dc93 Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Tue, 26 Apr 2016 14:34:56 -0500 Subject: Wait to mount until after fstab processed The necessity to process fstab twice stems from mounting partitions while still processing. Instead, wait to finish setup of /data, /cache and storage parameters until after fstab has been processed (once). Change-Id: Id77e1edbab5eb68a7cd4a1f34953d819a043d47a --- partitions.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'partitions.hpp') diff --git a/partitions.hpp b/partitions.hpp index ab34ec2ca..1ba0691eb 100644 --- a/partitions.hpp +++ b/partitions.hpp @@ -80,6 +80,7 @@ public: int Check_Lifetime_Writes(); int Decrypt_Adopted(); void Revert_Adopted(); + void Partition_Post_Processing(bool Display_Error); // Apply partition specific settings after fstab processed public: string Current_File_System; // Current file system @@ -96,6 +97,8 @@ protected: private: bool Process_Fstab_Line(const char *fstab_line, bool Display_Error); // Processes a fstab line + void Setup_Data_Partition(bool Display_Error); // Setup data partition after fstab processed + void Setup_Cache_Partition(bool Display_Error); // Setup cache partition after fstab processed void Find_Actual_Block_Device(); // Determines the correct block device and stores it in Actual_Block_Device void Apply_TW_Flag(const unsigned flag, const char* str, const bool val); // Apply custom twrp fstab flags -- cgit v1.2.3