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

Commit 55f8b894 authored by David Anderson's avatar David Anderson Committed by Gerrit Code Review
Browse files

Merge "fs_mgr: Don't try to suffix "vroot" with "-verity"."

parents 09070afd 9655c7bf
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -801,8 +801,11 @@ FstabEntry BuildGsiSystemFstabEntry() {
std::string GetVerityDeviceName(const FstabEntry& entry) {
    std::string base_device;
    if (entry.mount_point == "/") {
        // In AVB, the dm device name is vroot instead of system.
        base_device = entry.fs_mgr_flags.avb ? "vroot" : "system";
        // When using system-as-root, the device name is fixed as "vroot".
        if (entry.fs_mgr_flags.avb) {
            return "vroot";
        }
        base_device = "system";
    } else {
        base_device = android::base::Basename(entry.mount_point);
    }