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

Commit 13ebc021 authored by Tao Bao's avatar Tao Bao
Browse files

releasetools: Update the comments regarding selinux_fc.

The former comment no longer applies, as we have been always packing
META/file_contexts.bin in a target_files.zip (commit aa7318c3, since
Nougat), and we no longer look for the one under BOOT/RAMDISK/ (commit
d14b8956, since Q).

Test: N/A
Change-Id: I03f361234bf440e942f21e5a624862590248544b
parent 246a30a1
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -332,10 +332,8 @@ def LoadInfoDict(input_file, repacking=False):
    raise ValueError("Failed to find 'fstab_version'")

  if repacking:
    # We carry a copy of file_contexts.bin under META/. If not available, search
    # BOOT/RAMDISK/. Note that sometimes we may need a different file to build
    # images than the one running on device, in that case, we must have the one
    # for image generation copied to META/.
    # "selinux_fc" should point to the file_contexts file (file_contexts.bin)
    # under META/.
    fc_basename = os.path.basename(d.get("selinux_fc", "file_contexts"))
    fc_config = os.path.join(input_file, "META", fc_basename)
    assert os.path.exists(fc_config)