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
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user