From 8ed01f38163bafa721ff5bc066a71ca46240b827 Mon Sep 17 00:00:00 2001 From: Christoffer Dall Date: Wed, 17 Dec 2014 21:34:12 +0100 Subject: [PATCH] build_image: Set file system labels on disk images When building images set the mount point (data,cache,system) as the filesystem label on the generated image. This is required for the Android Emulator. IMPORTANT: This depends on the following patch to system/extras/: https://android-review.googlesource.com/#/c/120047/ which has already been submitted to AOSP and merged into the internal tree. Change-Id: Iaeb45462570c26d37980f1cc5d8a1b929e476c89 Signed-off-by: Christoffer Dall --- tools/releasetools/build_image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py index a010e84153..777a91a6fa 100755 --- a/tools/releasetools/build_image.py +++ b/tools/releasetools/build_image.py @@ -246,6 +246,7 @@ def BuildImage(in_dir, prop_dict, out_file, build_command.extend(["-C", fs_config]) if block_list is not None: build_command.extend(["-B", block_list]) + build_command.extend(["-L", prop_dict["mount_point"]]) if fc_config is not None: build_command.append(fc_config) elif "selinux_fc" in prop_dict: