unmapping super devices: do not remove ramdisk mountpoints

Change-Id: Iabd543e914887af78813805141604ae0ca1c812d
This commit is contained in:
bigbiff
2021-11-21 01:43:09 +00:00
parent a866b44f45
commit ac43dd1179
-1
View File
@@ -3578,7 +3578,6 @@ bool TWPartitionManager::Unmap_Super_Devices() {
LOGINFO("removing cow partition: %s\n", cow_partition.c_str());
destroyed = DestroyLogicalPartition(cow_partition);
}
rmdir((*iter)->Mount_Point.c_str());
iter = Partitions.erase(iter);
delete part;
if (!destroyed) {