diff options
author | Dees_Troy <dees_troy@teamw.in> | 2013-09-06 18:41:05 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@198.50.184.117> | 2013-09-06 18:41:05 +0200 |
commit | 84f683a322a1d018bd6ccafce8a29212df51f4ca (patch) | |
tree | 8615d5f3355f094639ddc5e67c8615fca96a0dc2 /partition.cpp | |
parent | Fix libselinx flags in libtar (diff) | |
parent | Add more args to make_ext4fs command (diff) | |
download | android_bootable_recovery-84f683a322a1d018bd6ccafce8a29212df51f4ca.tar android_bootable_recovery-84f683a322a1d018bd6ccafce8a29212df51f4ca.tar.gz android_bootable_recovery-84f683a322a1d018bd6ccafce8a29212df51f4ca.tar.bz2 android_bootable_recovery-84f683a322a1d018bd6ccafce8a29212df51f4ca.tar.lz android_bootable_recovery-84f683a322a1d018bd6ccafce8a29212df51f4ca.tar.xz android_bootable_recovery-84f683a322a1d018bd6ccafce8a29212df51f4ca.tar.zst android_bootable_recovery-84f683a322a1d018bd6ccafce8a29212df51f4ca.zip |
Diffstat (limited to 'partition.cpp')
-rw-r--r-- | partition.cpp | 5 |
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"; |