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

Commit 757dfe87 authored by Tao Bao's avatar Tao Bao Committed by Gerrit Code Review
Browse files

Merge "Revert "Work around e2fsck issue for building sparse GSIs""

parents 4438e0bb 27809667
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -474,11 +474,8 @@ def BuildImage(in_dir, prop_dict, out_file, target_out=None):

    # Run e2fsck on the inflated image file
    e2fsck_command = ["e2fsck", "-f", "-n", unsparse_image]
    # TODO(b/112062612): work around e2fsck failure with SANITIZE_HOST=address
    env4e2fsck = os.environ.copy()
    env4e2fsck["ASAN_OPTIONS"] = "detect_odr_violation=0"
    try:
      common.RunAndCheckOutput(e2fsck_command, env=env4e2fsck)
      common.RunAndCheckOutput(e2fsck_command)
    finally:
      os.remove(unsparse_image)