From 7d304c71f8695f5541833893e2581816128abd27 Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Sat, 2 Jan 2016 12:15:50 +0800 Subject: Generate new format /etc/fstab * Toybox's mount can't work with the old-fashioned fstab. * Busybox mount is compatible with the new one. Change-Id: I16b7d6424a4424c2a92d82846a706733bf58f8e1 Signed-off-by: dianlujitao --- partitionmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partitionmanager.cpp b/partitionmanager.cpp index 5194be804..c1cd29f22 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -183,7 +183,7 @@ 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\n"; + Line = (*iter)->Actual_Block_Device + " " + (*iter)->Mount_Point + " " + (*iter)->Current_File_System + " rw 0 0\n"; fputs(Line.c_str(), fp); } // Handle subpartition tracking -- cgit v1.2.3