summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2013-09-06 17:51:08 +0200
committerDees_Troy <dees_troy@teamw.in>2013-09-06 17:51:08 +0200
commit5295d581a57c65b9ee291bf783ff21cbd792f863 (patch)
tree4945fef1b984bebce3f50c78710b846565103781 /partition.cpp
parentMerge "libtar: store SELinux file context in tar archives" into twrp2.7 (diff)
downloadandroid_bootable_recovery-5295d581a57c65b9ee291bf783ff21cbd792f863.tar
android_bootable_recovery-5295d581a57c65b9ee291bf783ff21cbd792f863.tar.gz
android_bootable_recovery-5295d581a57c65b9ee291bf783ff21cbd792f863.tar.bz2
android_bootable_recovery-5295d581a57c65b9ee291bf783ff21cbd792f863.tar.lz
android_bootable_recovery-5295d581a57c65b9ee291bf783ff21cbd792f863.tar.xz
android_bootable_recovery-5295d581a57c65b9ee291bf783ff21cbd792f863.tar.zst
android_bootable_recovery-5295d581a57c65b9ee291bf783ff21cbd792f863.zip
Diffstat (limited to 'partition.cpp')
-rw-r--r--partition.cpp5
1 files changed, 4 insertions, 1 deletions
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";