Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 915f32d8 authored by Kelvin Zhang's avatar Kelvin Zhang Committed by Gerrit Code Review
Browse files

Revert^2 "Set ro.fstype.data when /data is mounted"

062eb59a

Change-Id: I20c4d4c17e4a314eb8754ed9c03db3dd8e3a5d0f
parent 062eb59a
Loading
Loading
Loading
Loading
+13 −0
Original line number Original line Diff line number Diff line
@@ -1656,6 +1656,19 @@ MountAllResult fs_mgr_mount_all(Fstab* fstab, int mount_mode) {
            continue;
            continue;
        }
        }
    }
    }
    if (userdata_mounted) {
        Fstab mounted_fstab;
        if (!ReadFstabFromFile("/proc/mounts", &mounted_fstab)) {
            LOG(ERROR) << "Could't load fstab from /proc/mounts , unable to set ro.fstype.data . "
                          "init.rc actions depending on this prop would not run, boot might fail.";
        } else {
            for (const auto& entry : mounted_fstab) {
                if (entry.mount_point == "/data") {
                    android::base::SetProperty("ro.fstype.data", entry.fs_type);
                }
            }
        }
    }


    set_type_property(encryptable);
    set_type_property(encryptable);