summaryrefslogtreecommitdiffstats
path: root/tools/releasetools/build_image.py
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2013-02-27 13:54:02 -0800
committerYing Wang <wangying@google.com>2013-02-27 13:54:02 -0800
commit6a42a25429a3313f87c8ca5154c99c7acd0eccdf (patch)
tree367db06c9962f01e8152922bad7f3a4e7a3602e5 /tools/releasetools/build_image.py
parentd7f8c32ecdebc7689df3c8ecf38ac5f8d2494eed (diff)
downloadbuild-6a42a25429a3313f87c8ca5154c99c7acd0eccdf.zip
build-6a42a25429a3313f87c8ca5154c99c7acd0eccdf.tar.gz
build-6a42a25429a3313f87c8ca5154c99c7acd0eccdf.tar.bz2
Run e2fsck only when building images with the target files.
With this change, e2fsck is run only when you build the update.zip file, which is built when "dist" is among the make command. Bug: 7591683 Change-Id: I446b71d5aa9295aff3af622f115175f769746615
Diffstat (limited to 'tools/releasetools/build_image.py')
-rwxr-xr-xtools/releasetools/build_image.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py
index 94a9fda..d5bd451 100755
--- a/tools/releasetools/build_image.py
+++ b/tools/releasetools/build_image.py
@@ -77,7 +77,7 @@ def BuildImage(in_dir, prop_dict, out_file):
if exit_code != 0:
return False
- if run_fsck:
+ if run_fsck and prop_dict.get("skip_fsck") != "true":
# Inflate the sparse image
unsparse_image = os.path.join(
os.path.dirname(out_file), "unsparse_" + os.path.basename(out_file))
@@ -113,6 +113,7 @@ def ImagePropFromGlobalDict(glob_dict, mount_point):
"extfs_sparse_flag",
"mkyaffs2_extra_flags",
"selinux_fc",
+ "skip_fsck",
)
for p in common_props:
copy_prop(p, p)