Write correct mount Opts in fstab

Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
Change-Id: I4049be4a693bde3f1bc3a088ce864eca5515ae5f
This commit is contained in:
Mohd Faraz
2020-09-30 10:55:48 +05:30
committed by bigbiff
parent a791d12005
commit 2a1e375076
+2 -1
View File
@@ -362,7 +362,8 @@ int TWPartitionManager::Write_Fstab(void) {
}
for (iter = Partitions.begin(); iter != Partitions.end(); iter++) {
if ((*iter)->Can_Be_Mounted) {
Line = (*iter)->Actual_Block_Device + " " + (*iter)->Mount_Point + " " + (*iter)->Current_File_System + " rw 0 0\n";
Line = (*iter)->Actual_Block_Device + " " + (*iter)->Mount_Point + " " + (*iter)->Current_File_System +
((*iter)->Mount_Read_Only ? " ro " : " rw ") + "0 0\n";
fputs(Line.c_str(), fp);
}
// Handle subpartition tracking