Add more args to make_ext4fs command
diff --git a/partition.cpp b/partition.cpp
index be4c3a3..11a4d9e 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1290,7 +1290,10 @@
Command += " -l ";
Command += len;
}
- Command += " " + Actual_Block_Device;
+ if (TWFunc::Path_Exists("/file_contexts")) {
+ Command += " -S /file_contexts";
+ }
+ Command += " -a " + Mount_Point + " " + Actual_Block_Device;
LOGINFO("make_ext4fs command: %s\n", Command.c_str());
if (TWFunc::Exec_Cmd(Command, result) == 0) {
Current_File_System = "ext4";