From 5295d581a57c65b9ee291bf783ff21cbd792f863 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Fri, 6 Sep 2013 15:51:08 +0000 Subject: Add more args to make_ext4fs command --- partition.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/partition.cpp b/partition.cpp index be4c3a3ee..11a4d9ec9 100644 --- a/partition.cpp +++ b/partition.cpp @@ -1290,7 +1290,10 @@ bool TWPartition::Wipe_EXT4() { 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"; -- cgit v1.2.3